Condition Coverage

blib/lib/Device/Modbus/Request.pm
Criterion Covered Total %
condition 48 60 80.0


and 3 conditions

line !l l&&!r l&&r condition
65 219 33 17 $_ eq 'quantity' and $args{'code'} ~~ [15, 16]
75 0 3 13 defined $args{'quantity'} and $args{'quantity'} >= 1
3 3 10 defined $args{'quantity'} and $args{'quantity'} >= 1 and $args{'quantity'} <= 2000
83 0 3 14 defined $args{'quantity'} and $args{'quantity'} >= 1
3 3 11 defined $args{'quantity'} and $args{'quantity'} >= 1 and $args{'quantity'} <= 125
92 1 0 7 defined $args{'value'} and $args{'value'} >= 0
1 0 7 defined $args{'value'} and $args{'value'} >= 0 and $args{'value'} <= 65535
100 0 1 6 defined $args{'value'} and $args{'value'} >= 0
1 1 5 defined $args{'value'} and $args{'value'} >= 0 and $args{'value'} <= 65535
108 0 2 7 defined $args{'values'} and @{$args{'values'};} >= 1
2 2 5 defined $args{'values'} and @{$args{'values'};} >= 1 and @{$args{'values'};} <= 1968
116 0 2 6 defined $args{'values'} and @{$args{'values'};} >= 1
2 2 4 defined $args{'values'} and @{$args{'values'};} >= 1 and @{$args{'values'};} <= 123
124 0 0 11 defined $args{'read_quantity'} and defined $args{'values'}
0 2 9 defined $args{'read_quantity'} and defined $args{'values'} and $args{'read_quantity'} >= 1
2 2 7 defined $args{'read_quantity'} and defined $args{'values'} and $args{'read_quantity'} >= 1 and $args{'read_quantity'} <= 125
4 2 5 defined $args{'read_quantity'} and defined $args{'values'} and $args{'read_quantity'} >= 1 and $args{'read_quantity'} <= 125 and @{$args{'values'};} >= 1
4 1 4 defined $args{'read_quantity'} and defined $args{'values'} and $args{'read_quantity'} >= 1 and $args{'read_quantity'} <= 125 and @{$args{'values'};} >= 1 and @{$args{'values'};} <= 121
152 2 3 0 $_ == 5 and $self->{'value'}

or 3 conditions

line l !l&&r !l&&!r condition
48 45 0 35 $args{'function'} or $args{'code'}