Branch Coverage

blib/lib/Locale/XGettext/Util/Flag.pm
Criterion Covered Total %
branch 16 28 57.1


line true false branch
30 0 10 unless defined $args{'function'}
31 0 10 unless defined $args{'flag'}
32 0 10 unless defined $args{'arg'}
33 0 10 unless length $args{'function'}
34 0 10 unless length $args{'flag'}
36 0 10 if $args{'flag'} =~ /\n/
37 0 10 unless $args{'arg'} =~ /^[1-9][0-9]*$/
39 0 8 unless ($args{'pass'} or $args{'arg'})
40 0 0 if $args{'flag'} =~ s/^pass-//
41 0 0 if $args{'flag'} =~ s/^no-//
54 2 8 if $args{'pass'}
55 1 9 if $args{'no'}
69 2 8 if $flag =~ s/^pass-//
70 1 9 if $flag =~ s/^no-//