Branch Coverage

blib/lib/TOML/Tiny/Parser.pm
Criterion Covered Total %
branch 57 64 89.0


line true false branch
35 18 17 shift() eq 'true' ? :
49 185 245 if ($self->{'strict'})
75 58 2 $token ? :
76 0 60 if ($ENV{'TOML_TINY_DEBUG'}) { }
104 3549 2 $token ? :
105 28 3523 unless $actual =~ /$expected/u
138 2 931 if ($key and exists $node->{$key})
152 0 162 if exists $self->{'array_tables'}{$key}
158 1 73 if (exists $self->{'arrays'}{$key})
168 2 229 if exists $self->{'arrays'}{$key} or exists $self->{'array_tables'}{$key}
170 9 220 if (exists $self->{'tables'}{$key}) { }
177 8 1 if (exists $node->{$key} and ref $node->{$key} eq 'ARRAY') { }
185 1 8 unless ($in_a_stupid_table_array)
202 714 275 if (exists $node->{$key}) { }
240 642 135 if (my $eol = $self->next_token) { }
403 3 16 $self->{'strict'} ? :
421 0 74 if (exists $node->{$key}) { }
448 1 97 if ($self->{'inflate_float'})
452 13 84 if $value =~ /^[-+]?nan$/iu
453 7 77 if $value =~ /^\+?inf$/iu
454 4 73 if $value =~ /^-inf$/iu
457 38 35 if (0 + $value eq $value)
472 25 10 if ($value =~ /[eE]/u)
473 25 0 if ('Math::BigFloat'->new($value)->beq(0 + $value))
487 1 410 if ($self->{'inflate_integer'})
492 15 395 if ($value =~ /^0x/u)
496 15 0 $big->beq($hex) ? :
500 11 384 if ($value =~ /^0o/u)
505 11 0 $big->beq($oct) ? :
509 10 374 if ($value =~ /^0b/u)
513 10 0 $big->beq($bin) ? :
517 368 6 if (0 + $value eq $value)