Branch Coverage

blib/lib/Bifcode.pm
Criterion Covered Total %
branch 128 156 82.0


line true false branch
71 0 76 if $@
94 4 29 unless (/ \G (b|u) (?: ( 0 | [1-9] [0-9]* ) \. )? /cgx)
95 0 4 / \G \z /cgx ? :
98 1 28 if ($1 eq 'b') { }
28 0 elsif ($1 eq 'u') { }
100 0 1 if $len > length($_) - pos($_)
105 0 1 unless / \G : /cgx
110 0 28 if $len > length($_) - pos($_)
115 0 28 unless / \G : /cgx
121 33 124 if defined $max_depth
123 8 149 unless (/$chunk/cg)
124 4 4 / \G \z /cgx ? :
127 8 141 if ($1 eq '~,') { }
3 138 elsif ($1 eq 'f,') { }
3 135 elsif ($1 eq 't,') { }
1 134 elsif ($1 eq 'N,') { }
1 133 elsif ($1 eq '-,') { }
1 132 elsif ($1 eq '+,') { }
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') { }
150 1 3 if $len > length($_) - pos($_)
155 1 2 unless / \G , /cgx
160 2 33 if $len > length($_) - pos($_)
165 2 31 unless / \G , /cgx
169 8 12 unless (defined $2)
170 1 7 if / \G \z /cgx
176 8 3 unless (defined $2)
177 1 7 if / \G \z /cgx
180 1 1 if $2 eq 0 and $3 eq 0 and $4 ne 0
188 4 22 if defined $max_depth and $max_depth < 0
197 3 26 if defined $max_depth and $max_depth < 0
202 2 33 if / \G \z /cgx
206 1 28 if exists $hash{$key}
207 1 27 if defined $last_key and $key lt $last_key
209 1 26 if / \G \} /cgx
218 0 0 if $len > length($_) - pos($_)
221 0 0 unless / \G , /cgx
231 1 99 if @_
232 2 97 unless defined $_
234 1 96 if utf8::is_utf8($_)
238 4 38 unless $_ =~ / \G \z /cgx
248 4 92 if (not defined $_) { }
48 44 elsif ((my $ref = ref $_) eq '') { }
5 39 elsif ($ref eq 'ARRAY') { }
7 32 elsif ($ref eq 'HASH') { }
6 26 elsif ($ref eq 'SCALAR' or $ref eq 'Bifcode::BYTES') { }
4 22 elsif (&boolean::isBoolean($_)) { }
4 18 elsif ($ref eq 'Bifcode::INTEGER') { }
9 9 elsif ($ref eq 'Bifcode::REAL') { }
3 6 elsif ($ref eq 'Bifcode::UTF8') { }
1 5 elsif (eval { do { $_->is_nan } }) { }
2 3 elsif (eval { do { $_->is_inf } }) { }
2 1 elsif (my $a = eval { do { [$_->is_int] } }) { }
252 36 12 if ($_ =~ /$number_qr/) { }
3 9 elsif (utf8::is_utf8($_)) { }
9 0 elsif ($_ =~ /^[\x{20}-\x{7E}]*$/) { }
253 26 10 if (defined $3 or defined $5) { }
289 13 1 if ($k =~ /^[\x{20}-\x{7E}]*$/) { }
1 0 elsif (utf8::is_utf8($k)) { }
308 2 2 $_ ? :
312 2 1 unless $$_ =~ /\A (?: 0 | -? [1-9] [0-9]* ) \z/x
318 1 7 unless $$_ =~ /$number_qr/
335 1 1 $_->is_pos ? :
338 1 1 $a->[0] ? :
349 0 75 if (@_ == 2 and pop()) { }
72 3 elsif (@_ == 1) { }
365 0 16 unless defined $ref and defined $type
383 2 5 unless @_ >= 2 and @_ <= 3
413 0 0 unless defined $_[0]{'rbuf'}
416 0 0 unless length $_[0]{'rbuf'}
420 0 0 if (length $3) { }
0 0 elsif (not length $1) { }
425 0 0 if ($@) { }