Branch Coverage

blib/lib/Net/IPMessenger/MessageCommand.pm
Criterion Covered Total %
branch 15 22 68.1


line true false branch
61 0 20 unless defined $name
64 16 4 if (looks_like_number $name) { }
4 0 elsif (exists $COMMAND{$name}) { }
80 0 14 unless ref $self
86 12 2 if ($name =~ /^get_(.+)/) { }
2 0 elsif ($name =~ /^set_(.+)/) { }
88 12 0 if (exists $SEND_OPT{$opt}) { }
89 4 8 $command & $SEND_OPT{$opt} ? :
97 2 0 if (exists $SEND_OPT{$opt}) { }
114 0 19 unless defined $command
123 19 218 if ($mode eq $COMMAND{$key})