Condition Coverage

lib/Date/Manip/Delta.pm
Criterion Covered Total %
condition 58 78 74.3


and 3 conditions

line !l l&&!r l&&r condition
187 4926 57 1 exists $opts{'mode'} and not $opts{'mode'} =~ /^(business|standard)$/
191 4888 94 1 exists $opts{'type'} and not $opts{'type'} =~ /^(exact|semi|estimated|approx)$/
464 0 744 50 $string and $string =~ s/$whenrx//i
473 0 680 114 $string and $string =~ /$rx/
506 333 130 0 $mode and exists $opts{'mode'}
130 0 0 $mode and exists $opts{'mode'} and $mode ne $opts{'mode'}
587 0 2503 338 @field and $field[0] ne $field0
590 0 2503 342 @field and $field[$#field] ne $field1
623 0 16 7 @field and $field[0] ne $field0
626 0 16 59 @field and $field[$#field] ne $field1
763 28 0 16 defined $sign and $sign eq "+"
777 18 1 3 $width and length $ret < $width
778 1 1 1 defined $pad and $pad eq ">"

or 3 conditions

line l !l&&r !l&&!r condition
151 4768 166 230 lc $key eq "delta" or lc $key eq "business"
4934 10 220 lc $key eq "delta" or lc $key eq "business" or lc $key eq "standard"
176 57 163 lc $key eq "delta" or lc $key eq "business" or lc $key eq "standard" or lc $key eq "nonorm"
67 58 105 lc $key eq "delta" or lc $key eq "business" or lc $key eq "standard" or lc $key eq "nonorm" or lc $key eq "mode"
115 95 10 lc $key eq "delta" or lc $key eq "business" or lc $key eq "standard" or lc $key eq "nonorm" or lc $key eq "mode" or lc $key eq "type"
176 4 0 4977 exists $opts{'y'} || exists $opts{'M'} || exists $opts{'w'} || exists $opts{'d'} || exists $opts{'h'} || exists $opts{'m'} || exists $opts{'s'}
379 0 0 0 $business eq "standard" or not $business
534 463 0 0 $mode || exists $opts{'mode'}
848 1005 0 1516 exists $self->{'data'}{'f'}{'y'} or exists $self->{'data'}{'f'}{'y'}{'y'}
914 26 7 21 $op eq "business" or $op eq "standard"
953 2 0 4 $type1 eq $type or $type2 eq $type
1074 0 1 3 $to eq "approx" or $to eq "semi"
1087 0 1 3 $to eq "approx" or $to eq "semi"