Can you invoke it directly in the test script as &{$SIG{__DIE__}} and test accordingly from there?
Only if the !$^S branch doesn't die (and doesn't call something that does). I should have made that clearer in my original post. Will fix. Thanks.
# potential workaround use constant DEFAULT_FILENAME => 'foo.txt'; my $filename = prompt_for_filename() || DEFAULT_FILENAME;
I don't see how the second alternative of the || could ever be false (i.e. the coverage would never be 100%).
Update: Ah, I see.
the lowliest monk
In reply to Re^3: TDD with Coverage Analysis. Wow.
by tlm
in thread TDD with Coverage Analysis. Wow.
by dws
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |