« blib/lib/Perlmazing/Perlmazing/windows_path.pm
↑ Summary
blib/lib/Perlmazing/Perlmazing/get_aes_cipher.pm »
| 1 | 30 | ▶ | use Perlmazing qw(is_empty); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 2 | 30 | ▶ | use Encode; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||
| 4 | 7 | ▶ | sub main ($) { | ||||||||||||||||||||||||||
|
Subroutine
main: called CC=5 SCAR=16.1
| |||||||||||||||||||||||||||||
| 5 | 7 | my $str = shift; | |||||||||||||||||||||||||||
| 6 | 7 | ▶ | return '' unless not is_empty $str; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 7 | 5 | my $str2 = $str; | |||||||||||||||||||||||||||
| 8 | 5 | eval { | |||||||||||||||||||||||||||
| 9 | 5 | $str = Encode::decode('utf8', $str, Encode::FB_CROAK); | |||||||||||||||||||||||||||
| 10 | }; | ||||||||||||||||||||||||||||
| 11 | 5 | ▶ | return 0 if $@; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 12 | 4 | ▶ | return 1 if defined($str) and $str2 ne $str; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $str and $str2 ne $str
MC/DC50%1/2
defined $str and $str2 ne $str
defined $str
$str2 ne $str
Truth table66%2/3
A and B
A= defined $strB= $str2 ne $str
| |||||||||||||||||||||||||||||
| 13 | 3 | return 0; | |||||||||||||||||||||||||||
| 14 | } | ||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||