Condition Coverage

blib/lib/RRD/Editor.pm
Criterion Covered Total %
condition 77 167 46.1


and 2 conditions

line l !l condition
95 0 0 $RRD::Editor::Config{'myarchname'} =~ /(sun|sparc|mips|irix|ppc|powerpc|arm)/i and !1

and 3 conditions

line !l l&&!r l&&r condition
118 630 463 44 $_[0] > 0 && $_[0] * 10 == $_[0]
239 0 338 0 $PACK_LITTLE_ENDIAN_SUPPORT and $encoding eq 'litteendian-single'
0 202 136 $PACK_LITTLE_ENDIAN_SUPPORT and $encoding eq 'littleendian-double'
271 43 0 71 $f < 1 and $f > 0
299 136 0 210 $f < 1 and $f > 0
324 0 562 6 $PACK_LITTLE_ENDIAN_SUPPORT and $encoding eq 'littleendian-single'
0 37 525 $PACK_LITTLE_ENDIAN_SUPPORT and $encoding eq 'littleendian-double'
345 6 0 0 $expo == 128 and $mant == 0
6 0 0 $expo == -127 and $mant == 0
365 90 16 0 $expo == 1024 and $mantlo == 0
106 0 0 $expo == 1024 and $mantlo == 0 and $manthi == 0
88 1 1 $expo == -1023 and $manthi == 0
89 0 1 $expo == -1023 and $manthi == 0 and $mantlo == 0
1012 1 0 39 $updvals[$j] ne 'U' and $rrd->{'ds'}[$j]{'hb'} >= $interval
1043 2 37 0 not _isNan($rate) and !_isNan($rrd->{'ds'}[$j]{'max'}) && $rate > $rrd->{'ds'}[$j]{'max'} || !_isNan($rrd->{'ds'}[$j]{'min'}) && $rate < $rrd->{'ds'}[$j]{'min'}
1320 0 0 0 $best_match < $tmp_match and $step_diff < $best_part_step_diff
1346 0 0 5 $t > $start and $t <= $end + $step
1711 6 0 0 $rrd->{'version'} ne '0003' and $rrd->{'version'} ne '0004'
1737 0 0 5 $PACK_LITTLE_ENDIAN_SUPPORT > 0 and $file_floatcookie_littleendian_double eq $cookie
0 0 0 $PACK_LITTLE_ENDIAN_SUPPORT > 0 and $file_floatcookie_littleendian_single eq $singlecookie

or 3 conditions

line l !l&&r !l&&!r condition
115 0 569 1458 $_[0] eq 'nan' || $_[0] != $_[0]
239 0 0 344 $encoding eq 'native-double-simple' or $encoding eq 'native-double-mixed'
253 75 0 127 $encoding eq 'portable-single' or $encoding eq 'ieee-32'
127 0 0 $encoding eq 'portable-double' or $encoding eq 'ieee-64'
324 0 0 587 $encoding eq 'native-double-simple' or $encoding eq 'native-double-mixed'
338 6 0 31 $encoding eq 'portable-single' or $encoding eq 'ieee-32'
31 0 0 $encoding eq 'portable-double' or $encoding eq 'ieee-64'
386 0 0 39 $self->{'encoding'} eq 'native-double-simple' or $self->{'encoding'} eq 'native-double-mixed'
404 0 0 10 $self->{'encoding'} eq 'native-double-simple' or $self->{'encoding'} eq 'native-double-mixed'
0 1 9 $self->{'encoding'} eq 'littleendian-single' or $self->{'encoding'} eq 'native-single'
1 1 8 $self->{'encoding'} eq 'littleendian-single' or $self->{'encoding'} eq 'native-single' or $self->{'encoding'} eq 'portable-single'
2 0 8 $self->{'encoding'} eq 'littleendian-single' or $self->{'encoding'} eq 'native-single' or $self->{'encoding'} eq 'portable-single' or $self->{'encoding'} eq 'ieee-32'
6 2 0 $self->{'encoding'} eq 'littleendian-double' or $self->{'encoding'} eq 'portable-double'
8 0 0 $self->{'encoding'} eq 'littleendian-double' or $self->{'encoding'} eq 'portable-double' or $self->{'encoding'} eq 'ieee-64'
511 0 0 120 $self->{'encoding'} eq 'native-double-simple' or $self->{'encoding'} eq 'native-double-mixed'
617 0 0 8 $rraidx > $rrd->{'rra_cnt'} or $rraidx < 0
624 0 0 0 $rraidx > $rrd->{'rra_cnt'} or $rraidx < 0
631 0 0 2 $rraidx > $rrd->{'rra_cnt'} or $rraidx < 0
638 0 0 2 $idx > $rrd->{'rra_cnt'} or $idx < 0
648 0 0 3 $rraidx > $rrd->{'rra_cnt'} or $rraidx < 0
650 0 0 3 $tidx >= $rrd->{'rra'}[$rraidx]{'row_cnt'} or $tidx < 0
870 0 0 1 $2 < 0 or $2 > 1
892 2 1 6 $idx >= $rrd->{'rra_cnt'} or $idx < 0
904 1 1 7 $idx >= $rrd->{'rra_cnt'} or $idx < 0
933 0 0 1 $idx >= $rrd->{'rra_cnt'} or $idx < 0
1043 0 0 37 !_isNan($rrd->{'ds'}[$j]{'max'}) && $rate > $rrd->{'ds'}[$j]{'max'} || !_isNan($rrd->{'ds'}[$j]{'min'}) && $rate < $rrd->{'ds'}[$j]{'min'}
1100 0 5 35 $interval > $rrd->{'ds'}[$j]{'hb'} or $rrd->{'pdp_step'} / 2 < $rrd->{'ds'}[$j]{'pdp_prep'}{'unkn_sec_cnt'} + $pre_unknown
1191 80 0 0 $pdp_into_cdp_cnt == 0 or _isNan($pdp_temp[$j])
1314 1 0 0 $firstfull or $step_diff < $best_full_step_diff
1320 1 0 0 $firstpart or $best_match < $tmp_match and $step_diff < $best_part_step_diff
1377 0 0 0 $self->{'encoding'} eq 'native-double-simple' or $self->{'encoding'} eq 'native-double-mixed'
1540 0 0 60 $self->{'encoding'} eq 'native-double-simple' or $self->{'encoding'} eq 'native-double-mixed'
1582 3 0 0 CORE::open $self->{'fd'}, '+<', $self->{'file_name'} or CORE::open $self->{'fd'}, '>', $self->{'file_name'}
1667 0 0 5 $2 < 0 or $2 > 1
1793 0 0 6 $file_len < $correct_len or $file_len > $correct_len + 8