Condition Coverage

blib/lib/Color/Model/RGB.pm
Criterion Covered Total %
condition 16 43 37.2


and 3 conditions

line !l l&&!r l&&r condition
169 0 0 1 defined $h and $h =~ /^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/
484 0 0 3 defined $argument and not ref $argument
0 0 3 defined $argument and not ref $argument and $argument >= 0
502 0 0 1 defined $argument and not ref $argument
0 0 1 defined $argument and not ref $argument and $argument >= 0
691 0 0 4 &Scalar::Util::blessed($src) and $src->isa('Color::Model::RGB')
694 0 0 4 not ref $src_rate and $src_rate =~ /^[0-9\.\-]+$/
0 0 4 not ref $src_rate and $src_rate =~ /^[0-9\.\-]+$/ and $src_rate >= -1
0 0 4 not ref $src_rate and $src_rate =~ /^[0-9\.\-]+$/ and $src_rate >= -1 and $src_rate <= 1
698 0 0 4 &Scalar::Util::blessed($dist) and $dist->isa('Color::Model::RGB')
701 0 0 4 not ref $dist_rate and $dist_rate =~ /^[0-9\.\-]+$/
0 0 4 not ref $dist_rate and $dist_rate =~ /^[0-9\.\-]+$/ and $dist_rate >= -1
0 0 4 not ref $dist_rate and $dist_rate =~ /^[0-9\.\-]+$/ and $dist_rate >= -1 and $dist_rate <= 1

or 2 conditions

line l !l condition
133 87 1 ref $class || 'Color::Model::RGB'
263 0 27 $head ||= ''