Branch Coverage

blib/lib/FFI/Platypus/Type/Enum.pm
Criterion Covered Total %
branch 41 42 97.6


line true false branch
20 8 5 defined $_[2] && XXX ? :
27 1 12 defined $config{'prefix'} ? :
29 1 12 unless $config{'rev'} =~ /^(int|str|dualvar)$/
36 11 27 if (XXX) { }
26 1 elsif (not XXX) { }
39 1 10 if (@$value % 2) { }
47 7 4 unless delete $opt{'alias'}
48 1 10 if %opt
59 2 34 if ($index < 0)
64 8 28 if (my $packages = $config{'package'})
66 2 6 XXX ? :
76 1 35 if exists $str_lookup{$name}
78 34 1 unless exists $int_lookup{$index}
85 1 8 if (defined $config{'maps'})
87 1 0 if (XXX) { }
102 4 8 exists $int_lookup{$_[0]} ? :
20 12 exists $str_lookup{$_[0]} ? :
108 7 2 if ($config{'rev'} eq 'str') { }
1 1 elsif ($config{'rev'} eq 'dualvar') { }
112 10 6 exists $int_lookup{$_[0]} ? :
120 3 1 exists $int_lookup{$_[0]} ? :