Branch Coverage

blib/lib/Socialtext/EditPage.pm
Criterion Covered Total %
branch 32 42 76.1


line true false branch
105 0 15 unless $page
111 2 13 if ($args{'template'})
112 1 1 if ($rester->response->code eq '404') { }
124 0 15 if ($args{'output'})
137 1 14 if ($orig_content eq $new_content)
142 4 10 if $args{'callback'}
146 1 13 if $args{'summary_callback'}
150 1 13 $edit_summary ? :
157 12 2 unless $@
158 0 2 if ($@ =~ /412/) { }
182 12 0 if ($tags)
183 1 11 unless ref $tags eq 'ARRAY'
218 0 1 unless (@$pages)
236 3 15 if ($$self{'pull_includes'})
301 4 2 if ($type eq 'clude') { }
2 0 elsif ($type eq 'link') { }
321 0 6 if $@
326 14 14 if $$w[2]
353 0 17 unless open my $fh, ">$filename"
355 0 17 unless close $fh
361 0 19 unless open my $fh, $filename