Condition Coverage

blib/lib/App/Rakubrew/Shell.pm
Criterion Covered Total %
condition 1 84 1.1


and 3 conditions

line !l l&&!r l&&r condition
54 0 0 0 $shell eq "csh" and env("tcsh")
94 0 0 0 $command eq "shell" and @params
0 0 0 $command eq "mode" and $mode eq "shim"
220 0 0 0 $index == 1 and $words[0] eq 'version' || $words[0] eq 'current'
0 0 0 $index == 1 and $words[0] eq 'global' || $words[0] eq 'switch' || $words[0] eq 'shell' || $words[0] eq 'local' || $words[0] eq 'nuke' || $words[0] eq 'test'
0 0 0 $index == 1 and $words[0] eq "exec"
0 0 0 $index == 2 and $words[0] eq "exec"
0 0 0 $index == 2 and $words[0] eq "exec" and $words[1] eq "--with"
0 0 0 $index == 1 and $words[0] eq "build"
0 0 0 $index == 2 and $words[0] eq "build"
0 0 0 $index == 1 and $words[0] eq "download"
0 0 0 $index == 2 and $words[0] eq "download"
0 0 0 $index == 1 and $words[0] eq "mode"
0 0 0 $index == 2 and $words[0] eq "register"
0 0 0 $index == 1 and $words[0] eq "help"
284 0 0 0 length $candidate > 0 and substr($candidate, -1) ne "/"

or 2 conditions

line l !l condition
49 0 0 env('SHELL') || '/bin/bash'
88 0 0 shift @params // ""
226 0 0 $words[1] // ""
233 0 0 $words[1] // ""
237 0 0 $words[1] // ""
242 0 0 $words[2] // ""
246 0 0 $words[1] // ""
252 0 0 $words[2] // ""
256 0 0 $words[1] // ""
263 0 0 $words[2] // ""
268 0 0 $words[2] // ""
291 0 0 $words[1] // ""

or 3 conditions

line l !l&&r !l&&!r condition
25 0 0 18 not shell_exists("Dummy self", $shell) or $shell eq "auto"
220 0 0 0 $words[0] eq 'version' || $words[0] eq 'current'
0 0 0 $words[0] eq 'global' || $words[0] eq 'switch' || $words[0] eq 'shell' || $words[0] eq 'local' || $words[0] eq 'nuke' || $words[0] eq 'test'
221 0 0 0 $index < 0 || !$words[0]