Condition Coverage

blib/lib/YAML/PP/Lexer.pm
Criterion Covered Total %
condition 42 44 95.4


and 3 conditions

line !l l&&!r l&&r condition
202 13682 18819 326 not $spaces and substr($$yaml, 0, 1) eq "%"
208 13682 14488 4331 not $spaces and $$yaml =~ s/\A(---|\.\.\.)(?=$RE_WS|\z)//
27481 630 59 $self->flowcontext and $$yaml =~ /\A[ \t]+(#.*)?\z/
284 439 93 7 $self->flowcontext and $$yaml =~ s/\A:(?=[,\{\}\[\]])//
427 10756 4521 630 not $spaces and $$yaml =~ s/\A(---|\.\.\.)(?=$RE_WS|\z)//
492 19018 242 90 @lines > 1 and $lines[-1] eq ""
569 2915 1327 200 not $spaces and $content =~ /\A(---|\.\.\.)(?=$RE_WS|\z)/
647 584 102 3 not $spaces and $$yaml =~ /\A(---|\.\.\.)(?=$RE_WS|\z)/
857 0 1 27 $trailing_ws and $$yaml =~ s/\A(#.*)?\z//

or 2 conditions

line l !l condition
811 300 26 $ENV{'YAML_PP_RESERVED_DIRECTIVE'} || 'warn'

or 3 conditions

line l !l&&r !l&&!r condition
8 1 0 51 $ENV{'YAML_PP_DEBUG'} || $ENV{'YAML_PP_TRACE'}
277 9160 140 47077 $first eq " " or $first eq "\t"
286 1260 27601 8 $self->flowcontext or $self->block
343 1211 1440 5051 $first eq "{" or $first eq "["
1209 1431 2411 $first eq "}" or $first eq "]"