Condition Coverage

blib/lib/Data/XHash.pm
Criterion Covered Total %
condition 94 164 57.3


and 3 conditions

line !l l&&!r l&&r condition
276 34 1 4 ref $key eq 'ARRAY' and @$key
327 198 2 3 $array_key and @$key
364 39 153 0 $key =~ /^\d+$/ and defined $$self{'max_index'} ? $key > $$self{'max_index'} : $key >= $self->next_index
433 48 0 0 ref $key eq 'ARRAY' and @$key
450 35 0 20 blessed $to and $to->isa('Data::XHash')
464 3 35 9 defined $$self{'max_index'} and $$self{'max_index'} eq $key
491 14 0 0 ref $key eq 'ARRAY' and @$key
495 0 0 0 $$path{'container'} && $$path{'container'}->exists($$path{'key'})
551 0 1 2 $entry && $entry != $$self{'tail'}[1]
566 0 3 6 $iter and $iter != $$self{'tail'}
588 0 0 0 $entry && $entry != $$self{'tail'}
954 10 6 9 $options{'indexed_as'} ne 'hash' and $key =~ /^-?\d+$/
961 20 0 5 blessed $new_val and $new_val->isa('Data::XHash')
962 3 0 2 blessed $cur_val and $cur_val->isa('Data::XHash')
1040 0 2 0 $options{'nested'} and blessed $value
2 0 0 $options{'nested'} and blessed $value and $value->isa('Data::XHash')
1047 0 2 1 $options{'nested'} and blessed $value
2 0 1 $options{'nested'} and blessed $value and $value->isa('Data::XHash')
1074 154 27 9 $options{'nested'} and blessed $value
181 0 9 $options{'nested'} and blessed $value and $value->isa('Data::XHash')
1267 0 5 2 @path and ref $path[-1] eq 'HASH'
1274 4 0 3 $op eq 'store' and not exists $options{'vivify'}
1278 2 3 7 defined $key && $container->exists($key)
1294 0 0 6 blessed $value && $value->isa('Data::XHash')
1 6 0 @path || $options{'xhash'} and not blessed $value && $value->isa('Data::XHash')

or 2 conditions

line l !l condition
704 2 0 $$self{'hash'}{$_} || []
947 7 1 $options{'indexed_as'} ||= 'array'
1208 2 0 $options{'from'} || 0
1264 7 0 $options{'op'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
231 20 46 0 blessed $type || $type
282 21 14 0 tied %$self || $self
333 50 150 0 tied %$this || $this
336 73 2 125 not defined $key or $array_key
387 69 146 0 tied %$this || $this
444 14 34 0 tied %$self || $self
499 3 11 0 tied %$self || $self
514 1 2 0 tied %$self || $self
534 1 0 0 tied %$self || $self
548 3 0 0 tied %$self || $self
563 3 6 0 tied %$self || $self
585 0 0 0 tied %$self || $self
599 1 0 0 tied %$self || $self
613 16 3 0 tied %$self || $self
667 18 0 0 tied %$self || $self
702 2 0 0 tied %$self || $self
751 12 0 0 tied %$self || $self
783 11 0 0 tied %$self || $self
793 11 0 0 tied %$self || $self
846 57 10 0 tied %$this || $this
882 5 2 0 tied %$this || $this
1028 2 0 0 tied %$self || $self
1063 63 0 0 tied %$self || $self
1114 4 0 0 tied %$this || $this
1158 2 0 0 tied %$this || $this
1286 0 1 3 @path or $options{'xhash'}
1294 5 1 1 @path || $options{'xhash'}