Branch Coverage

blib/lib/FFI/Platypus/Type/Enum.pm
Criterion Covered Total %
branch 35 36 97.2


line true false branch
19 6 5 defined $_[2] && XXX ? :
26 1 10 defined $config{'prefix'} ? :
28 1 10 unless $config{'rev'} =~ /^(int|str)$/
35 11 22 if (XXX) { }
21 1 elsif (not XXX) { }
38 1 10 if (@$value % 2) { }
46 7 4 unless delete $opt{'alias'}
47 1 10 if %opt
58 2 29 if ($index < 0)
63 6 25 if (my $package = $config{'package'})
72 1 30 if exists $str_lookup{$name}
74 29 1 unless exists $int_lookup{$index}
81 1 6 if (defined $config{'maps'})
83 1 0 if (XXX) { }
98 4 8 exists $int_lookup{$_[0]} ? :
20 12 exists $str_lookup{$_[0]} ? :
104 6 1 unless ($config{'rev'} eq 'int')
108 10 6 exists $int_lookup{$_[0]} ? :