Condition Coverage

blib/lib/Dotiac/DTL/Filter.pm
Criterion Covered Total %
condition 100 240 41.6


and 3 conditions

line !l l&&!r l&&r condition
26 16 0 8 $value->number and $add->number
27 16 0 8 $value->number and $add->number
86 0 0 16 defined $string && $string->scalar
108 4 0 0 $t[2] == 12 and $t[1] > 0
116 4 0 0 $t[2] == 12 and $t[1] > 0
191 8 0 0 $t[2] == 12 and $t[1] == 0
8 0 0 $t[2] == 0 and $t[1] == 0
203 4 0 0 $t[2] == 12 and $t[1] > 0
239 0 0 0 not $d % 4 and $d % 100
316 24 0 40 &Scalar::Util::looks_like_number($a) and &Scalar::Util::looks_like_number($b)
329 20 0 36 &Scalar::Util::reftype($a) eq 'HASH' and exists $$a{$by}
330 36 0 20 &Scalar::Util::reftype($a) eq 'ARRAY' and &Scalar::Util::looks_like_number($by)
36 0 20 &Scalar::Util::reftype($a) eq 'ARRAY' and &Scalar::Util::looks_like_number($by) and exists $$a[$by]
331 56 0 0 &Scalar::Util::blessed($a) and $a->can($by)
335 20 0 36 &Scalar::Util::reftype($b) eq 'HASH' and $$b{$by}
336 36 0 20 &Scalar::Util::reftype($a) eq 'ARRAY' and &Scalar::Util::looks_like_number($by)
36 0 20 &Scalar::Util::reftype($a) eq 'ARRAY' and &Scalar::Util::looks_like_number($by) and exists $$b[$by]
337 56 0 0 &Scalar::Util::blessed($b) and $b->can($by)
339 40 0 16 &Scalar::Util::looks_like_number($aa) and &Scalar::Util::looks_like_number($bb)
355 24 0 40 &Scalar::Util::looks_like_number($a) and &Scalar::Util::looks_like_number($b)
368 20 0 36 &Scalar::Util::reftype($a) eq 'HASH' and exists $$a{$by}
369 36 0 20 &Scalar::Util::reftype($a) eq 'ARRAY' and &Scalar::Util::looks_like_number($by)
36 0 20 &Scalar::Util::reftype($a) eq 'ARRAY' and &Scalar::Util::looks_like_number($by) and exists $$a[$by]
370 56 0 0 &Scalar::Util::blessed($a) and $a->can($by)
374 20 0 36 &Scalar::Util::reftype($b) eq 'HASH' and $$b{$by}
375 36 0 20 &Scalar::Util::reftype($a) eq 'ARRAY' and &Scalar::Util::looks_like_number($by)
36 0 20 &Scalar::Util::reftype($a) eq 'ARRAY' and &Scalar::Util::looks_like_number($by) and exists $$b[$by]
376 56 0 0 &Scalar::Util::blessed($b) and $b->can($by)
378 40 0 16 &Scalar::Util::looks_like_number($aa) and &Scalar::Util::looks_like_number($bb)
494 4 8 4 $arg and not $arg->number
539 0 0 8 defined $pos and $pos->number
569 0 0 0 $value->content->can('__len__') and $value->content->can('__getitem__')
577 0 0 0 $value->content->can('count') and $value->content->can('__getitem__')
594 0 0 0 $value->content->can('__len__') and $value->content->can('__getitem__')
601 0 0 0 $value->content->can('count') and $value->content->can('__getitem__')
633 8 0 0 $value->object and $value->content->can('count')
634 8 0 0 $value->object and $value->content->can('__len__')
650 0 0 12 defined $is and &Scalar::Util::looks_like_number($is)
653 8 0 0 $value->object and $value->content->can('count')
654 8 0 0 $value->object and $value->content->can('__len__')
766 0 0 0 $value->content->can('__len__') and $value->content->can('__getitem__')
772 0 0 0 $value->content->can('count') and $value->content->can('__getitem__')
911 0 0 12 defined $string && $string->scalar
933 0 0 0 $t[2] == 12 and $t[1] > 0
941 0 0 0 $t[2] == 12 and $t[1] > 0
982 8 0 0 $t[2] == 12 and $t[1] == 0
8 0 0 $t[2] == 0 and $t[1] == 0
994 0 0 0 $t[2] == 12 and $t[1] > 0
1040 0 0 20 $comp and $comp->number
1082 0 0 20 $comp and $comp->number
1129 0 0 8 $words and $words->number
1143 0 0 8 $words and $words->number
1148 4 4 60 $words and (pos $value || 0) < $len
1171 4 4 0 @t and $t ne $tag
1240 4 0 0 @loop == 2 and ref $loop[1]
4 0 0 @loop == 2 and ref $loop[1] and &Scalar::Util::reftype($loop[1]) eq 'ARRAY'
0 0 0 @loop == 2 and ref $loop[1] and &Scalar::Util::reftype($loop[1]) eq 'ARRAY' and ref $loop[1][0] || !@{$loop[1];}
1291 0 0 8 $len and $len->number
1315 0 0 4 $len and $len->number

or 2 conditions

line l !l condition
845 32 8 int($slice[0] || 0) || 0
852 24 8 int($slice[1] || 0) || 0
1148 56 8 pos $value || 0

or 3 conditions

line l !l&&r !l&&!r condition
82 12 4 0 $value->number or $value->array
108 4 0 4 $t[2] > 12 or $t[2] == 12 and $t[1] > 0
116 4 0 4 $t[2] > 12 or $t[2] == 12 and $t[1] > 0
171 0 0 8 !($d % 4) && $d % 100 || !($d % 400)
203 4 0 4 $t[2] > 12 or $t[2] == 12 and $t[1] > 0
234 0 0 8 $t[4] == 1 or $t[4] == 3
0 0 8 $t[4] == 1 or $t[4] == 3 or $t[4] == 5
0 0 8 $t[4] == 1 or $t[4] == 3 or $t[4] == 5 or $t[4] == 7
0 0 8 $t[4] == 1 or $t[4] == 3 or $t[4] == 5 or $t[4] == 7 or $t[4] == 8
0 0 8 $t[4] == 1 or $t[4] == 3 or $t[4] == 5 or $t[4] == 7 or $t[4] == 8 or $t[4] == 10
0 0 8 $t[4] == 1 or $t[4] == 3 or $t[4] == 5 or $t[4] == 7 or $t[4] == 8 or $t[4] == 10 or $t[4] == 12
239 0 0 0 not $d % 4 and $d % 100 or not $d % 400
553 12 0 0 eval { do { pack 'C*', unpack('U0C*', $value) } } || pack('C*', unpack('C*', $value))
835 20 20 0 $value->hash or $value->array
907 8 4 0 $value->number or $value->array
933 4 0 0 $t[2] > 12 or $t[2] == 12 and $t[1] > 0
941 4 0 0 $t[2] > 12 or $t[2] == 12 and $t[1] > 0
994 8 0 0 $t[2] > 12 or $t[2] == 12 and $t[1] > 0
1240 0 0 0 ref $loop[1][0] || !@{$loop[1];}