Condition Coverage

blib/lib/App/Phoebe.pm
Criterion Covered Total %
condition 0 131 0.0


and 3 conditions

line !l l&&!r l&&r condition
323 0 0 0 $type ne "text/plain" and $type ne "text/gemini"
370 0 0 0 -e $lock and $age > 5
415 0 0 0 /^(\d+)\.gmi$/u and $1 > $revision
468 0 0 0 /^(\d+)\.gmi$/u and $1 > $revision
524 0 0 0 $query and ($host, $space) = $url =~ m[^(?:gemini:)?//($hosts)(?::$port)?(?:/($spaces))?/do/match\?]u
0 0 0 $query and ($host, $space) = $url =~ m[^(?:gemini:)?//($hosts)(?::$port)?(?:/($spaces))?/do/search\?]u
0 0 0 $query and ($host, $space) = $url =~ m[^(?:gemini:)?//($hosts)(?::$port)?(?:/($spaces))?/do/new\?]u
881 0 0 0 -e $file and time - modified($file) <= 300
975 0 0 0 $jsnippet < $maxsnippets and $text =~ /($str)/iu
1111 0 0 0 $_ and $_ ne "\n"
1112 0 0 0 $filter and not /$filter/u
1156 0 0 0 $ts and $id
1158 0 0 0 $filter eq "latest" and $seen{$name}
1274 0 0 0 -e $log and my $fh = "File::ReadBackwards"->new($log)
1353 0 0 0 -e $log and my $fh = "File::ReadBackwards"->new($log)
1421 0 0 0 $ts and $id
1797 0 0 0 $revision and -f "$dir/keep/$id/$revision.gmi"
1799 0 0 0 $id eq "robots" and not $space
2087 0 0 0 $space and $App::Phoebe::server->{'wiki_space_token'}{$space}
2090 0 0 0 not $token and @tokens

or 2 conditions

line l !l condition
254 0 0 shift() || 'text/gemini; charset=UTF-8'
267 0 0 shift() || ''
317 0 0 shift() || 'text/plain'
363 0 0 shift() || 0
535 0 0 space($stream, $host, $space) || ''
567 0 0 $n || 100
569 0 0 $n || 100
0 0 $style || ''
0 0 $filter || ''
583 0 0 $n || 10
628 0 0 shift() || ''
629 0 0 shift() || ''
702 0 0 shift() || 'gemini'
777 0 0 shift() || 10
1149 0 0 shift() || sub { my($host, $space, $id, $revision) = @_; -e wiki_dir($host, $space) . "/keep/$id/$revision.gmi"; }
1150 0 0 shift() || ''
1262 0 0 $App::Phoebe::server->{'wiki_main_page'} || 'Phoebe'
1314 0 0 $App::Phoebe::server->{'wiki_main_page'} || 'Phoebe'
1406 0 0 $App::Phoebe::server->{'wiki_main_page'} || 'Phoebe'
1480 0 0 $App::Phoebe::server->{'wiki_main_page'} || 'Phoebe'
1651 0 0 $1 || 'default'
1697 0 0 shift() || ''
1768 0 0 shift() || ''
2084 0 0 $params->{'token'} || ''
2110 0 0 $params->{'mime'} || 'text/plain'

or 3 conditions

line l !l&&r !l&&!r condition
275 0 0 0 $data->{'upload'} ||= is_upload($stream, $data->{'request'})
654 0 0 0 @{$App::Phoebe::server->{'wiki_space'};} or keys %{$$server{"host"};} > 1
741 0 0 0 $date_b && $date_a && $date_b cmp $date_a || $article_a cmp $article_b || $a cmp $b
953 0 0 0 $id =~ /$str/iu or $text =~ /$str/iu
1669 0 0 0 $text ||= $url
2114 0 0 0 $type eq "text/plain" or $type eq "text/gemini"
0 0 0 grep(/^$type$/u, @types) || grep(/^$main_type$/u, @types)