Condition Coverage

blib/lib/Device/Modbus/Request.pm
Criterion Covered Total %
condition 67 78 85.9


and 3 conditions

line !l l&&!r l&&r condition
64 225 50 0 $_ eq 'quantity' and $args{'code'} == 15 || $args{'code'} == 16
74 0 3 13 defined $args{'quantity'} and $args{'quantity'} >= 1
3 3 10 defined $args{'quantity'} and $args{'quantity'} >= 1 and $args{'quantity'} <= 2000
82 0 3 14 defined $args{'quantity'} and $args{'quantity'} >= 1
3 3 11 defined $args{'quantity'} and $args{'quantity'} >= 1 and $args{'quantity'} <= 125
94 0 1 6 defined $args{'value'} and $args{'value'} >= 0
1 1 5 defined $args{'value'} and $args{'value'} >= 0 and $args{'value'} <= 65535
102 0 2 7 defined $args{'values'} and @{$args{'values'};} >= 1
2 2 5 defined $args{'values'} and @{$args{'values'};} >= 1 and @{$args{'values'};} <= 1968
110 0 2 6 defined $args{'values'} and @{$args{'values'};} >= 1
2 2 4 defined $args{'values'} and @{$args{'values'};} >= 1 and @{$args{'values'};} <= 123
118 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
145 2 6 0 $self->{'code'} == 5 and $self->{'value'}

or 3 conditions

line l !l&&r !l&&!r condition
47 47 0 35 $args{'function'} or $args{'code'}
63 28 11 275 $_ eq 'bytes' or $_ eq 'write_quantity'
64 9 8 33 $args{'code'} == 15 || $args{'code'} == 16
73 10 6 62 $args{'code'} == 1 or $args{'code'} == 2
9 8 45 $args{'code'} == 3 or $args{'code'} == 4
139 2 2 18 $self->{'code'} == 1 or $self->{'code'} == 2
4 2 16 $self->{'code'} == 1 or $self->{'code'} == 2 or $self->{'code'} == 3
4 2 14 $self->{'code'} == 1 or $self->{'code'} == 2 or $self->{'code'} == 3 or $self->{'code'} == 4
6 2 6 $self->{'code'} == 5 or $self->{'code'} == 6