Branch Coverage

blib/lib/Archer/Shell.pm
Criterion Covered Total %
branch 27 52 51.9


line true false branch
23 0 0 unless $$self{'parallel'}->use
35 0 0 if ($@) { }
40 0 0 if (-f $HISTFILE)
41 0 0 unless $term->ReadHistory($HISTFILE)
48 0 0 if $line =~ /^\s*$/
55 0 0 if ($@)
65 1 7 if ($cmd =~ /^on\s+/) { }
2 5 elsif ($cmd =~ /^with\s+/) { }
0 5 elsif ($cmd =~ /^help/) { }
0 5 elsif ($cmd =~ /^(quit|exit)/) { }
4 1 elsif ($cmd =~ /^!/) { }
66 1 0 if ($cmd =~ /^on\s(.*)\sdo\s(.*)$/) { }
74 2 0 if ($cmd =~ /^with\s(.*)\sdo\s(.*)$/) { }
89 4 0 if ($cmd =~ /^!(\w+)\s?(on|with)?\s?(.*)?$/) { }
93 0 3 if (defined $action and defined $machines and length $machines < 1)
102 4 4 if $$plugin{'name'} ne $task
104 3 1 if (defined $action) { }
105 1 2 if ($action eq 'on') { }
108 1 1 if $valid_host{$host}
116 6 0 if $valid_host{$host}
127 0 4 if ($executed == 0)
149 1 0 if (@hosts)
163 0 3 unless (defined $$server_tree{$role})
171 0 2 if (@inexistant)
198 11 0 $$plugin{'module'} =~ /^\+(.+)$/ ? :
199 0 11 unless $class->use