Branch Coverage

blib/lib/Test/Stream/Delta.pm
Criterion Covered Total %
branch 77 80 96.2


line true false branch
40 3 2 delete $COLUMNS{$header} ? :
47 1 6 unless $name
51 1 5 if $COLUMNS{$name}
54 3 2 if (@_ == 1) { }
63 1 4 unless $value
66 1 3 unless ref $value and &reftype($value) eq 'CODE'
69 1 2 if ($params{'prefix'}) { }
83 1 233 if exists $self->{'check'} and exists $self->{'chk'}
87 233 15 if exists $self->{'check'}
94 1 160 if ($exp)
101 9 151 if $dne and $dne eq 'got'
104 12 139 unless defined $got
109 44 95 if ref $got and not $stringify
118 6 153 if $dne and $dne eq 'check'
121 2 151 unless defined $check
128 33 95 if not $type or $type eq 'META'
129 8 87 if $type eq 'SCALAR'
130 32 55 if $type eq 'HASH'
131 38 17 if $type eq 'ARRAY'
132 17 0 if $type eq 'METHOD'
138 75 62 unless $path
140 15 47 if not $type or $type eq 'META'
142 7 40 if $type eq 'METHOD'
143 7 33 if $type eq 'SCALAR'
144 6 27 if $path =~ /(>|\(\))$/
145 3 24 if $path eq '$VAR'
148 4 20 if $type =~ /^(HASH|ARRAY)$/ and not $path =~ /(\]|\})$/
166 122 58 unless $self->verified
168 0 55 unless $check->lines
174 1 38 unless $file eq $cfile
188 158 16 if $delta->should_show
191 112 53 unless @$children
204 390 196 unless $COLUMNS{$_}{'alias'}
212 144 9 unless $self->{'dne'} and $self->{'dne'} eq 'got'
223 41 112 unless @$lines
232 9 145 if $self->{'dne'} and $self->{'dne'} eq 'got'
235 139 6 unless @lines
253 0 954 unless defined $val
271 3 93 exists $ENV{'TS_MAX_DELTA'} ? :
272 1 95 if ($max and @$rows > $max)