Branch Coverage

blib/lib/Bifcode/V2.pm
Criterion Covered Total %
branch 111 132 84.0


line true false branch
88 4 29 unless (/ \G (b|u) (?: ( 0 | [1-9] [0-9]* ) \. )? /cgx)
89 0 4 / \G \z /cgx ? :
92 1 28 if ($1 eq 'b') { }
28 0 elsif ($1 eq 'u') { }
94 0 1 if $len > length($_) - pos($_)
99 0 1 unless / \G : /cgx
104 0 28 if $len > length($_) - pos($_)
109 0 28 unless / \G : /cgx
115 33 118 if defined $max_depth
117 5 146 unless (/$chunk/cg)
118 4 1 / \G \z /cgx ? :
121 8 138 if ($1 eq '~,') { }
3 135 elsif ($1 eq 'f,') { }
3 132 elsif ($1 eq 't,') { }
6 126 elsif ($1 eq 'b') { }
40 86 elsif ($1 eq 'u') { }
20 66 elsif ($1 eq 'i') { }
11 55 elsif ($1 eq 'r') { }
26 29 elsif ($1 eq '[') { }
29 0 elsif ($1 eq '{') { }
0 0 elsif ($1 eq 'B') { }
132 1 3 if $len > length($_) - pos($_)
137 1 2 unless / \G , /cgx
142 2 33 if $len > length($_) - pos($_)
147 2 31 unless / \G , /cgx
151 12 8 if defined $2
152 1 7 if / \G \z /cgx
156 8 3 unless (defined $2)
157 1 7 if / \G \z /cgx
160 1 1 if $2 eq '0' and $3 eq '0' and $4 ne '0'
168 4 22 if defined $max_depth and $max_depth < 0
177 3 26 if defined $max_depth and $max_depth < 0
182 2 33 if / \G \z /cgx
186 1 28 if exists $hash{$key}
187 1 27 if defined $last_key and $key lt $last_key
189 1 26 if / \G \} /cgx
198 0 0 if $len > length($_) - pos($_)
203 0 0 unless / \G , /cgx
212 1 93 if @_
213 2 91 unless defined $_
215 1 90 if utf8::is_utf8($_)
219 4 35 unless $_ =~ / \G \z /cgx
229 4 86 if (not defined $_) { }
47 39 elsif ((my $ref = ref $_) eq '') { }
5 34 elsif ($ref eq 'ARRAY') { }
7 27 elsif ($ref eq 'HASH') { }
6 21 elsif ($ref eq 'SCALAR' or $ref eq 'Bifcode::V2::BYTES') { }
4 17 elsif (&boolean::isBoolean($_)) { }
4 13 elsif ($ref eq 'Bifcode::V2::INTEGER') { }
9 4 elsif ($ref eq 'Bifcode::V2::REAL') { }
3 1 elsif ($ref eq 'Bifcode::V2::UTF8') { }
0 1 elsif ($ref eq 'Bifcode::V2::BIFCODE') { }
233 3 44 if (utf8::is_utf8($_)) { }
35 9 elsif ($_ =~ /$number_qr/) { }
0 9 elsif ($_ =~ /[^\x{20}-\x{7E}]/) { }
238 25 10 if (defined $3 or defined $5) { }
270 1 13 if (utf8::is_utf8($k)) { }
0 13 elsif ($k =~ /[^\x{20}-\x{7E}]/) { }
289 2 2 $_ ? :
293 2 1 unless $$_ =~ /\A (?: 0 | -? [1-9] [0-9]* ) \z/x
299 1 7 unless $$_ =~ /$number_qr/
323 3 66 if @_ != 1
331 0 16 unless defined $ref and defined $type
349 2 62 unless @_ >= 2 and @_ <= 3
365 0 0 unless defined $_[0]{'rbuf'}
366 0 0 unless ($handle->{'rbuf'} =~ /^(B(0|[1-9][0-9]*)\.)/)