| blib/lib/TOML/Tiny/Tokenizer.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 24 | 29 | 82.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 47 | 0 | 247 | 6275 | defined $self->{'source'} and $self->{'position'} < $self->{'last_position'} |
| 77 | 254 | 5482 | 6048 | $self->{'position'} < $self->{'last_position'} and not defined $type |
| 259 | 4 | 1 | 11 | $hex < 1114111 and charnames::viacode($hex) |
| line | l | !l | condition |
|---|---|---|---|
| 143 | 109 | 0 | substr($self->{'source'}, $self->{'position'}, 30) // "undef" |
| 149 | 461 | 646 | $self->can("tokenize_$type") || 0 |
| 181 | 5934 | 0 | pos $self->{'source'} // 0 |
| 187 | 5 | 0 | shift() // "unknown" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 79 | 1993 | 72 | 3983 | $prev eq 'EOL' || $prev eq 'table' || $prev eq 'array_table' |
| 149 | 4631 | 461 | 646 | $tokenizers->{$type} //= $self->can("tokenize_$type") || 0 |
| 219 | 15 | 20 | 547 | index($toml, q[''']) == 0 || index($toml, '"""') == 0 |
| 268 | 131 | 0 | 5 | unescape_chars($1) // $_[0]->error(undef, "invalid unicode escape: $1") |