Branch Coverage

blib/lib/Net/MQTT/Message.pm
Criterion Covered Total %
branch 24 24 100.0


line true false branch
27 41 2 exists $types{$p{'message_type'}} ? :
36 1 25 if length $bytes < 2
47 2 23 if $@
48 2 21 if (length $bytes < $offset + $length)
51 1 20 if $splice
65 80 4 unless (shift())->{'dup'}
70 52 42 defined $$self{'qos'} ? :
78 80 4 unless (shift())->{'retain'}
81 38 12 unless (shift())->{'remaining'}
93 41 1 unless defined $prefix
98 4 80 if $bool
101 36 6 $r ? :