blib/lib/TOML/Tiny/Tokenizer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 29 | 82.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
47 | 0 | 244 | 6114 | defined $self->{'source'} and $self->{'position'} < $self->{'last_position'} |
77 | 251 | 5327 | 5888 | $self->{'position'} < $self->{'last_position'} and not defined $type |
261 | 4 | 1 | 14 | $hex < 1114111 and charnames::viacode($hex) |
line | l | !l | condition |
---|---|---|---|
143 | 109 | 0 | substr($self->{'source'}, $self->{'position'}, 30) // "undef" |
149 | 457 | 638 | $self->can("tokenize_$type") || 0 |
181 | 5774 | 0 | pos $self->{'source'} // 0 |
187 | 5 | 0 | shift() // "unknown" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
79 | 1938 | 71 | 3879 | $prev eq 'EOL' || $prev eq 'table' || $prev eq 'array_table' |
149 | 4485 | 457 | 638 | $tokenizers->{$type} //= $self->can("tokenize_$type") || 0 |
221 | 15 | 20 | 426 | index($toml, q[''']) == 0 || index($toml, '"""') == 0 |
270 | 114 | 0 | 5 | unescape_chars($1) // $_[0]->error(undef, "invalid unicode escape: $1") |