Branch Coverage

blib/lib/Pandoc/Metadata.pm
Criterion Covered Total %
branch 39 44 88.6


line true false branch
85 95 66 unless (grep {defined $_;} @match{'_plain_key', '_empty'})
110 10 2 $params->{'in'} ? :
124 13 5 unless $opts{'strict'}
127 1 4 if ($opts{'_error'} eq 'container')
142 105 204 @_ % 2 ? :
153 1 97 if ($opts{'_pointer'} ne '') { }
161 8 7 $_[1] && $_[1] ne 'false' && $_[1] ne 'FALSE' ? :
167 6 5 $_[0]{'c'} ? :
174 0 14 if ($opts{'_pointer'} ne '') { }
3 11 elsif (($opts{'boolean'} // '') eq 'JSON::PP') { }
177 2 1 $content ? :
179 6 5 $content ? :
187 12 107 if (defined $opts{'_empty'}) { }
92 15 elsif (exists $$map{$opts{'_key'}}) { }
199 12 29 if (defined $opts{'_empty'}) { }
28 1 elsif ($opts{'_key'} =~ /^[1-9][0-9]*$|^0$/) { }
202 1 27 if ($opts{'_key'} > $#$content)
206 27 0 defined $value ? :
215 0 32 if ($opts{'_pointer'} ne '') { }
0 32 elsif ($opts{'element'} // !1) { }
231 0 5 if ($opts{'_pointer'} ne '') { }
2 3 elsif ($opts{'element'} // !1) { }