I am writing a scripting language for test automation of a certain product for a certain company.
One of the features of the language is that every function, whether or not it is executed should output something so it can be correctly audited by a test auditor.
So there may be situations such as
if(condition1){
doAction(1);
}
now in this situation, even if condition1 is not true, I still need doAction to print something out saying that it is not running because of condition1.
I know I could do
...
else{
print "Not doing doAction(1) because of condition1\n";
}
but that is not sufficient for what I need. It's not standard, not auditable, and leaves the output up to the scripter (the language is supposed to be usable by non scripters)
Hope that kinda explains my problem