Branch Coverage

blib/lib/Bifcode/V2.pm
Criterion Covered Total %
branch 96 98 97.9


line true false branch
83 44 134 if defined $max_depth
85 5 173 unless (/$match/cg)
86 4 1 / \G \z /cgx ? :
89 8 165 if ($1 eq '~,') { }
3 162 elsif ($1 eq 'f,') { }
3 159 elsif ($1 eq 't,') { }
7 152 elsif ($1 eq 'b') { }
68 84 elsif ($1 eq 'u') { }
20 64 elsif ($1 eq 'i') { }
11 53 elsif ($1 eq 'r') { }
26 27 elsif ($1 eq '[') { }
27 0 elsif ($1 eq '{') { }
100 1 4 if $len > length($_) - pos($_)
105 1 3 unless / \G , /cgx
110 2 61 if $len > length($_) - pos($_)
115 2 59 unless / \G , /cgx
119 12 8 if defined $2
120 1 7 if / \G \z /cgx
124 8 3 unless (defined $2)
125 1 7 if / \G \z /cgx
128 1 1 if $2 eq '0' and $3 eq '0' and $4 ne '0'
136 4 22 if defined $max_depth and $max_depth < 0
145 3 24 if defined $max_depth and $max_depth < 0
150 2 31 if / \G \z /cgx
151 2 29 unless / \G (b|u) /cgx
156 1 28 if exists $hash{$key}
157 1 27 if defined $last_key and $key lt $last_key
159 1 26 if / \G \} /cgx
172 1 91 if @_
173 2 89 unless defined $_
175 1 88 if utf8::is_utf8($_)
179 4 35 unless $_ =~ / \G \z /cgx
189 4 84 if (not defined $_) { }
46 38 elsif ((my $ref = ref $_) eq '') { }
5 33 elsif ($ref eq 'ARRAY') { }
6 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') { }
193 35 11 if ($_ =~ /$number_qr/) { }
194 25 10 if (defined $3 or defined $5) { }
239 2 2 $_ ? :
243 2 1 unless $$_ =~ /\A (?: 0 | -? [1-9] [0-9]* ) \z/x
249 1 7 unless $$_ =~ /$number_qr/
269 3 65 if @_ != 1
277 0 16 unless defined $ref and defined $type
295 2 61 unless @_ >= 2 and @_ <= 3