Condition Coverage

blib/lib/TOML/Tiny/Tokenizer.pm
Criterion Covered Total %
condition 24 29 82.7


and 3 conditions

line !l l&&!r l&&r condition
35 0 244 6114 defined $self->{'source'} and $self->{'position'} < $self->{'last_position'}
65 251 5327 5888 $self->{'position'} < $self->{'last_position'} and not defined $type
242 4 1 14 $hex < 1114111 and charnames::viacode($hex)

or 2 conditions

line l !l condition
123 109 0 substr($self->{'source'}, $self->{'position'}, 30) // "undef"
130 457 638 $self->can("tokenize_$type") || 0
162 5774 0 pos $self->{'source'} // 0
168 5 0 shift() // "unknown"

or 3 conditions

line l !l&&r !l&&!r condition
67 1938 71 3879 $prev eq 'EOL' || $prev eq 'table' || $prev eq 'array_table'
130 4485 457 638 $tokenizers->{$type} //= $self->can("tokenize_$type") || 0
202 15 20 426 index($toml, q[''']) == 0 || index($toml, '"""') == 0
251 114 0 5 unescape_chars($1) // $_[0]->error(undef, "invalid unicode escape: $1")