Branch Coverage

blib/lib/XML/FeedPP/Plugin/DumpJSON.pm
Criterion Covered Total %
branch 25 62 40.3


line true false branch
109 2 11 if scalar @_ % 2
111 0 13 if exists $$opts{'file'}
114 3 7 if ($$opts{'slim'} or $$opts{'slim_element'} or $$opts{'slim_element_add'})
122 0 13 if ($file)
131 0 0 unless open $fh, ">$file"
142 13 0 unless $usepp
143 0 13 unless $usesyck
145 13 0 if ($usesyck and defined $JSON::Syck::VERSION)
148 0 0 if ($usepp and defined $JSON::VERSION)
151 0 0 if ($usesyck)
154 0 0 unless $@
156 0 0 if ($usepp)
159 0 0 unless $@
161 0 0 if ($usepp) { }
173 13 0 if exists $$opts{'utf8_flag'}
183 0 0 unless $ver
184 0 0 if $ver < 1.99
191 0 0 unless (defined $JSON::PP::VERSION)
194 0 0 if $@
198 0 0 if exists $$opts{'utf8_flag'}
199 0 0 $utf8 ? :
211 0 0 if exists $$opts{'utf8_flag'}
212 0 0 $utf8 ? :
223 3 3 if (ref $add)
228 6 39 $key eq 'link' ? :
229 15 30 if defined $val
235 12 78 $key eq 'link' ? :
236 32 58 if defined $val
241 2 4 if ($root eq 'rss') { }
2 2 elsif ($root eq 'rdf:RDF') { }
2 0 elsif ($root eq 'feed') { }