Condition Coverage

script/moku-pona
Criterion Covered Total %
condition 34 77 44.1


and 3 conditions

line !l l&&!r l&&r condition
132 9 0 0 $ENV{'XDG_DATA_HOME'} and -d $ENV{'XDG_DATA_HOME'} . '/moku-pona'
133 0 9 0 $ENV{'HOME'} and -d $ENV{'HOME'} . '/.local/moku-pona'
134 0 9 0 $ENV{'HOME'} and -d $ENV{'HOME'} . '/.moku-pona'
135 9 0 0 $ENV{'APPDATA'} and -d $ENV{'APPDATA'} . '/.moku-pona'
136 9 0 0 $ENV{'LOGDIR'} and -d $ENV{'LOGDIR'} . '/.moku-pona'
139 0 9 0 $ENV{'HOME'} and -d $ENV{'HOME'} . '/.local'
184 3 0 11 $host and $port
205 0 0 0 $scheme and $scheme eq 'gemini'
407 2 0 4 @args and $i < @$site
492 0 2 2 $line =~ /^=> \S+ \d\d\d\d-\d\d-\d\d (.+)/u and not $sites{$1}
499 0 1 1 @deletes and not $confirm
504 0 1 1 $todo and not $confirm

or 2 conditions

line l !l condition
185 11 0 $port //= 0
208 0 0 $port //= 1965
250 10 0 $scheme ||= 'gopher'
256 10 0 $port || 70
266 0 0 $path ||= '/'
456 1 1 shift() || !1
753 0 0 shift @ARGV || 'help'

or 3 conditions

line l !l&&r !l&&!r condition
247 0 10 0 shift() || $url
270 0 0 0 $port ||= $tls ? 443 : 80
375 8 0 0 $name ||= $uri
579 10 0 0 $name ||= $uri
580 10 0 0 @sites == 0 or grep {$_ eq $name;} @sites
676 1 4 0 $xpc->findnodes('//atom:entry', $root) || $root->findnodes('//item')
679 2 5 0 $xpc->findnodes('atom:title', $node) || $node->getChildrenByTagName('title')
683 2 4 1 $xpc->findnodes('atom:link', $node) || $node->getChildrenByTagName('link')
686 2 4 0 $link->getAttribute('href') || $link->textContent