Branch Coverage

blib/lib/Test/Mocha/PartialDump.pm
Criterion Covered Total %
branch 61 62 100.0


line true false branch
29 30 1 unless exists $args{'max_length'}
30 30 1 unless exists $args{'max_elements'}
31 30 1 unless exists $args{'max_depth'}
32 7 24 unless exists $args{'stringify'}
33 26 5 unless exists $args{'pairs'}
34 7 24 unless exists $args{'objects'}
35 30 1 unless exists $args{'list_delim'}
36 30 1 unless exists $args{'pair_delim'}
46 131 185 $self->should_dump_as_pairs(@args) ? :
51 2 314 if (defined $$self{'max_length'} and length $dump > $$self{'max_length'})
55 1 1 if $max_length < 0
66 9 307 unless $$self{'pairs'}
68 169 138 if @what % 2 != 0
71 7 157 if ref $what[$i]
82 2 169 if (defined $$self{'max_elements'} and @what / 2 > $$self{'max_elements'})
89 2 169 $truncated ? :
98 171 59 unless @what
117 2 188 if (defined $$self{'max_elements'} and @what > $$self{'max_elements'})
124 2 188 $truncated ? :
132 67 49 blessed $value ? :
171 33 looks_like_number $value ? :
116 204 ref $value ? :
320 1 defined $value ? :
159 2 50 if ($depth > $$self{'max_depth'}) { }
164 2 48 if $reftype eq 'REF' or $reftype eq 'LVALUE'
169 50 0 if ($self->can($method)) { }
183 1 4 if $class
193 1 39 if $class
207 1 4 if $class
216 3 64 if ($$self{'objects'}) { }
220 61 3 $$self{'stringify'} ? :