Branch Coverage

blib/lib/Turtle/Writer.pm
Criterion Covered Total %
branch 29 34 85.2


line true false branch
23 4 6 if (ref $o)
24 3 1 if (reftype $o eq 'HASH')
27 4 0 if (reftype $o eq 'ARRAY') { }
28 4 0 if ref $o
33 6 4 defined $o && $o ne '' ? :
36 3 3 unless @s
39 2 1 if (defined $subject) { }
51 9 31 if (ref $value and ref $value eq 'ARRAY')
55 10 21 if (@_ % 2) { }
57 4 6 $v =~ /^[a-zA-Z0-9-]+$/ ? :
61 0 21 if $opt{'lang'} and $opt{'type'}
65 5 26 if not defined $value or $value eq ''
73 8 18 if ($opt{'lang'}) { }
5 13 elsif ($opt{'type'}) { }
84 3 7 if (ref $_[0] and ref $_[0] eq 'HASH') { }
1 6 elsif (@_ > 1) { }
100 0 0 unless defined $value