Branch Coverage

blib/lib/Etherpad.pm
Criterion Covered Total %
branch 0 168 0.0


line true false branch
26 0 0 if (defined $c->proxy)
27 0 0 if ($c->proxy->{'detect'}) { }
30 0 0 if defined $c->proxy->{'http'}
31 0 0 if defined $c->proxy->{'https'}
36 0 0 if defined $c->user and defined $c->password
45 0 0 if ($res->is_success) { }
48 0 0 if ($json->{'code'} == 0) { }
49 0 0 if $args->{'boolean'}
51 0 0 if (defined $args->{'key'}) { }
52 0 0 ref $json->{'data'} eq 'HASH' ? :
57 0 0 wantarray ? :
0 0 if ref $data eq 'ARRAY'
100 0 0 unless (defined $group_mapper)
128 0 0 unless (defined $group_id)
156 0 0 unless (defined $group_id)
186 0 0 unless (defined $pad_name)
195 0 0 if defined $text
237 0 0 if defined $name
259 0 0 unless (defined $author_mapper)
267 0 0 if defined $name
288 0 0 unless (defined $author_id)
313 0 0 unless (defined $author_id)
346 0 0 unless (defined $valid_until)
350 0 0 unless ($valid_until =~ /\d+/)
380 0 0 unless (defined $session_id)
408 0 0 unless (defined $session_id)
435 0 0 unless (defined $group_id)
462 0 0 unless (defined $author_id)
493 0 0 unless (defined $pad_id)
501 0 0 if defined $rev
510 0 0 if ref $result eq 'HASH'
526 0 0 unless (defined $text)
556 0 0 unless (defined $text)
586 0 0 unless (defined $pad_id)
594 0 0 if defined $rev
616 0 0 unless (defined $html)
645 0 0 unless (defined $pad_id)
674 0 0 unless (defined $pad_id)
682 0 0 if defined $rev
704 0 0 unless (defined $pad_id)
709 0 0 unless (defined $start_rev)
714 0 0 unless (defined $end_rev)
744 0 0 unless (defined $pad_id)
749 0 0 unless (defined $rev)
783 0 0 unless (defined $pad_id)
791 0 0 if defined $start
792 0 0 if defined $end
813 0 0 unless (defined $pad_id)
844 0 0 unless (defined $pad_id)
849 0 0 unless (defined $text)
854 0 0 unless (defined $author_id)
859 0 0 unless (defined $timestamp)
894 0 0 unless (defined $pad_id)
902 0 0 if defined $text
923 0 0 unless (defined $pad_id)
951 0 0 unless (defined $pad_id)
979 0 0 unless (defined $pad_id)
1008 0 0 unless (defined $pad_id)
1016 0 0 if defined $rev
1044 0 0 unless (defined $pad_id)
1072 0 0 unless (defined $pad_id)
1100 0 0 unless (defined $pad_id)
1130 0 0 unless (defined $source_id)
1135 0 0 unless (defined $destination_id)
1147 0 0 $force ? :
0 0 if defined $force
1170 0 0 unless (defined $source_id)
1175 0 0 unless (defined $destination_id)
1187 0 0 $force ? :
0 0 if defined $force
1208 0 0 unless (defined $pad_id)
1236 0 0 unless (defined $read_only_id)
1265 0 0 unless (defined $public_status)
1270 0 0 $public_status ? :
1294 0 0 unless (defined $pad_id)
1323 0 0 unless (defined $password)
1352 0 0 unless (defined $pad_id)
1380 0 0 unless (defined $pad_id)
1408 0 0 unless (defined $pad_id)
1419 0 0 if (defined $name) { }
1426 0 0 if $anonymous
1428 0 0 wantarray ? :
1442 0 0 unless (defined $pad_id)
1471 0 0 unless (defined $msg)