Branch Coverage

bin/rcon-minecraft
Criterion Covered Total %
branch 18 18 100.0


line true false branch
18 6 12 unless &GetOptionsFromArray($ARGV, \%o, ('host=s', 'port=i', 'password=s', 'timeout=f', 'command|cmd=s@', 'color', 'quiet', 'echo', 'help', 'version'))
20 1 11 if ($o{'help'})
21 1 10 if ($o{'version'})
23 6 4 if @$ARGV
28 8 1 if (@{$o{'command'};}) { }
37 2 8 if $o->{'echo'}
40 1 9 $o->{'color'} ? :
42 7 1 length $resp ? :
8 2 unless $o->{'quiet'}