Branch Coverage

blib/lib/Bifcode.pm
Criterion Covered Total %
branch 112 140 80.0


line true false branch
71 0 73 if $@
91 4 29 unless (/ \G (b|u) (?: ( 0 | [1-9] [0-9]* ) \. )? /cgx)
92 0 4 / \G \z /cgx ? :
95 1 28 if ($1 eq 'b') { }
28 0 elsif ($1 eq 'u') { }
97 0 1 if $len > length($_) - pos($_)
102 0 1 unless / \G : /cgx
107 0 28 if $len > length($_) - pos($_)
112 0 28 unless / \G : /cgx
118 33 118 if defined $max_depth
120 5 146 unless (/$chunk/cg)
121 4 1 / \G \z /cgx ? :
124 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') { }
135 1 3 if $len > length($_) - pos($_)
140 1 2 unless / \G , /cgx
145 2 33 if $len > length($_) - pos($_)
150 2 31 unless / \G , /cgx
154 12 8 if defined $2
155 1 7 if / \G \z /cgx
159 8 3 unless (defined $2)
160 1 7 if / \G \z /cgx
163 1 1 if $2 eq '0' and $3 eq '0' and $4 ne '0'
171 4 22 if defined $max_depth and $max_depth < 0
180 3 26 if defined $max_depth and $max_depth < 0
185 2 33 if / \G \z /cgx
189 1 28 if exists $hash{$key}
190 1 27 if defined $last_key and $key lt $last_key
192 1 26 if / \G \} /cgx
201 0 0 if $len > length($_) - pos($_)
204 0 0 unless / \G , /cgx
214 1 93 if @_
215 2 91 unless defined $_
217 1 90 if utf8::is_utf8($_)
221 4 35 unless $_ =~ / \G \z /cgx
231 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::BYTES') { }
4 17 elsif (&boolean::isBoolean($_)) { }
4 13 elsif ($ref eq 'Bifcode::INTEGER') { }
9 4 elsif ($ref eq 'Bifcode::REAL') { }
3 1 elsif ($ref eq 'Bifcode::UTF8') { }
235 35 12 if ($_ =~ /$number_qr/) { }
3 9 elsif (utf8::is_utf8($_)) { }
9 0 elsif ($_ =~ /^[\x{20}-\x{7E}]*$/) { }
236 25 10 if (defined $3 or defined $5) { }
272 13 1 if ($k =~ /^[\x{20}-\x{7E}]*$/) { }
1 0 elsif (utf8::is_utf8($k)) { }
291 2 2 $_ ? :
295 2 1 unless $$_ =~ /\A (?: 0 | -? [1-9] [0-9]* ) \z/x
301 1 7 unless $$_ =~ /$number_qr/
321 0 69 if (@_ == 2 and pop()) { }
66 3 elsif (@_ == 1) { }
337 0 16 unless defined $ref and defined $type
355 2 62 unless @_ >= 2 and @_ <= 3
385 0 0 unless defined $_[0]{'rbuf'}
388 0 0 unless length $_[0]{'rbuf'}
392 0 0 if (length $3) { }
0 0 elsif (not length $1) { }
397 0 0 if ($@) { }