Branch Coverage

blib/lib/TOML/Tiny/Tokenizer.pm
Criterion Covered Total %
branch 44 46 95.6


line true false branch
47 247 6275 unless defined $self->{'source'} and $self->{'position'} < $self->{'last_position'}
49 425 5850 unless ($self->{'last_token'})
78 6048 0 $self->{'last_token'} ? :
83 100 5948 if /\G$TOML::Tiny::Tokenizer::Comment$/cgmu
85 101 5847 if /\G$/cgu
87 1366 4481 if (/\G$TOML::Tiny::Tokenizer::EOL/cgu)
93 1602 2879 if ($newline)
94 244 1358 if (/$table/cgu)
100 75 1283 if (/$array_table/cgu)
107 1091 3071 if (/$key_set/cgu)
113 1894 1177 if (/\G ( [\[\]{}=,] | true | false )/cgux)
119 480 697 if (/\G($TOML::Tiny::Tokenizer::String)/cgu)
125 57 640 if (/\G($TOML::Tiny::Tokenizer::DateTime)/cgu)
131 102 538 if (/\G($TOML::Tiny::Tokenizer::Float)/cgu)
137 429 109 if (/\G($TOML::Tiny::Tokenizer::Integer)/cgu)
147 5738 201 if ($type)
157 2102 3636 $tokenize ? :
188 0 5 $token ? :
199 102 1590 if $seg =~ /^['"]/u
224 35 547 if ($ml) { }
234 521 61 unless ($lit)
253 120 16 if (exists $$esc{$_[0]})
259 11 5 if ($hex < 1114111 and charnames::viacode($hex))