Branch Coverage

blib/lib/WWW/Mechanize/Plugin/Snapshot.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
172 0 0 unless $pluggable->_suffix
174 0 0 unless $pluggable->_run_tag
176 0 0 unless defined $pluggable->_snap_count
179 0 0 if (not defined $snap_dir) { }
182 0 0 if (not defined $$pluggable{'SnapDirectory'}) { }
200 0 0 if (-e $snap_dir)
201 0 0 unless -d $snap_dir
214 0 0 if (defined $layout)
220 0 0 unless defined $$self{'SnapshotLayout'} and exists $template{$$self{'SnapshotLayout'}}
225 0 0 if $$self{'SnapshotLayout'} ne $current
244 0 0 if (defined $suffix) { }
252 0 0 unless (-e $snap_dir)
254 0 0 if ($@)
259 0 0 $is_xml ? :
287 0 0 $is_xml ? :
297 0 0 if (defined $prefix) { }
318 0 0 unless defined $args{'name'}
320 0 0 unless $args{'hash'}
324 0 0 unless ($template = $pluggable->_template($args{'name'}))
327 0 0 unless $template{$pluggable->snap_layout}{$args{'name'}}
338 0 0 unless open $fh, ">$filename"
355 0 0 unless defined $args{'content_type'}
356 0 0 $args{'version'} ? :
364 0 0 unless defined $template_name
366 0 0 if (defined $template_name and defined $template)