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 232 if exists $self->{'check'} and exists $self->{'chk'}
87 232 15 if exists $self->{'check'}
94 1 159 if ($exp)
101 9 150 if $dne and $dne eq 'got'
104 12 138 unless defined $got
109 44 94 if ref $got and not $stringify
118 6 152 if $dne and $dne eq 'check'
121 2 150 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 121 58 unless $self->verified
168 0 55 unless $check->lines
174 1 38 unless $file eq $cfile
188 157 16 if $delta->should_show
191 111 53 unless @$children
204 386 194 unless $COLUMNS{$_}{'alias'}
212 143 9 unless $self->{'dne'} and $self->{'dne'} eq 'got'
223 40 112 unless @$lines
232 9 144 if $self->{'dne'} and $self->{'dne'} eq 'got'
235 138 6 unless @lines
253 0 948 unless defined $val
271 3 92 exists $ENV{'TS_MAX_DELTA'} ? :
272 1 94 if ($max and @$rows > $max)