Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
315 0 0 0 -e $lock and $age > 5
358 0 0 0 /^(\d+)\.gmi$/u and $1 > $revision
411 0 0 0 /^(\d+)\.gmi$/u and $1 > $revision
467 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
816 0 0 0 -e $file and time - modified($file) <= 300
910 0 0 0 $jsnippet < $maxsnippets and $text =~ /($str)/iu
1042 0 0 0 $_ and $_ ne "\n"
1043 0 0 0 $filter and not /$filter/u
1085 0 0 0 $ts and $id
1087 0 0 0 $filter eq 'latest' and $seen{$name}
1201 0 0 0 -e $log and my $fh = 'File::ReadBackwards'->new($log)
1280 0 0 0 -e $log and my $fh = 'File::ReadBackwards'->new($log)
1348 0 0 0 $ts and $id
1721 0 0 0 $revision and -f "$dir/keep/$id/$revision.gmi"
1723 0 0 0 $id eq 'robots' and not $space
2012 0 0 0 $space and $App::Phoebe::server->{'wiki_space_token'}{$space}
2015 0 0 0 not $token and @tokens
2038 0 0 0 $type ne 'text/plain' and not grep(/^$type$/u, @types)
0 0 0 $type ne 'text/plain' and not grep(/^$type$/u, @types) and not grep(/^$main_type$/u, @types)

or 2 conditions

line l !l condition
224 0 0 shift() || 'text/gemini; charset=UTF-8'
237 0 0 shift() || ''
308 0 0 shift() || 0
478 0 0 space($stream, $host, $space) || ''
510 0 0 $n || 100
512 0 0 $n || 100
0 0 $style || ''
0 0 $filter || ''
526 0 0 $n || 10
563 0 0 shift() || ''
564 0 0 shift() || ''
637 0 0 shift() || 'gemini'
712 0 0 shift() || 10
1079 0 0 shift() || sub { my($host, $space, $id, $revision) = @_; -e wiki_dir($host, $space) . "/keep/$id/$revision.gmi"; }
1080 0 0 shift() || ''
1189 0 0 $App::Phoebe::server->{'wiki_main_page'} || 'Phoebe'
1241 0 0 $App::Phoebe::server->{'wiki_main_page'} || 'Phoebe'
1333 0 0 $App::Phoebe::server->{'wiki_main_page'} || 'Phoebe'
1407 0 0 $App::Phoebe::server->{'wiki_main_page'} || 'Phoebe'
1578 0 0 $1 || 'default'
1624 0 0 shift() || ''
1692 0 0 shift() || ''
2009 0 0 $params->{'token'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
245 0 0 0 $data->{'upload'} ||= is_upload($stream, $data->{'request'})
589 0 0 0 @{$App::Phoebe::server->{'wiki_space'};} or keys %{$$server{'host'};} > 1
676 0 0 0 $date_b && $date_a && $date_b cmp $date_a || $article_a cmp $article_b || $a cmp $b
888 0 0 0 $id =~ /$str/iu or $text =~ /$str/iu
1596 0 0 0 $text ||= $url