blib/lib/Device/Modbus/Response.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 41 | 45 | 91.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
74 | 1 | 1 | 7 | @{$args{'values'};} > 0 and @{$args{'values'};} <= 2000 |
82 | 1 | 2 | 7 | @{$args{'values'};} > 0 and @{$args{'values'};} <= 125 |
98 | 1 | 1 | 3 | $args{'value'} >= 0 and $args{'value'} <= 65535 |
106 | 1 | 1 | 2 | $args{'quantity'} > 0 and $args{'quantity'} <= 1968 |
114 | 1 | 1 | 3 | $args{'quantity'} >= 1 and $args{'quantity'} <= 123 |
140 | 1 | 2 | 0 | $self->{'code'} == 5 and $self->{'value'} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
48 | 17 | 0 | 27 | $args{'function'} or $args{'code'} |
73 | 6 | 3 | 30 | $args{'code'} == 1 or $args{'code'} == 2 |
4 | 3 | 23 | $args{'code'} == 3 or $args{'code'} == 4 | |
7 | 3 | 20 | $args{'code'} == 3 or $args{'code'} == 4 or $args{'code'} == 23 | |
128 | 1 | 1 | 7 | $self->{'code'} == 1 or $self->{'code'} == 2 |
1 | 1 | 5 | $self->{'code'} == 3 or $self->{'code'} == 4 | |
2 | 0 | 5 | $self->{'code'} == 3 or $self->{'code'} == 4 or $self->{'code'} == 23 | |
2 | 1 | 2 | $self->{'code'} == 5 or $self->{'code'} == 6 | |
1 | 1 | 0 | $self->{'code'} == 15 or $self->{'code'} == 16 |