Branch Coverage

blib/lib/RDF/Trine/Serializer.pm
Criterion Covered Total %
branch 20 20 100.0


line true false branch
85 8 1 if (my $class = $serializer_names{$key}) { }
116 3 11 if (ref $restrict and ref $restrict eq 'ARRAY') { }
123 16 124 unless $sclasses{$sclass}
127 14 110 if ($type eq 'text/turtle') { }
11 99 elsif ($type eq 'text/plain') { }
134 37 87 if $type =~ m[/x-]
135 63 61 if $type =~ m[^application/(?!rdf[+]xml)]
151 2 10 if (defined $stype and $custom_thunks{$stype})
157 10 2 if (defined $stype and my $sclass = $media_types{$stype}) { }
175 9 51 if $sclass eq $class