Condition Coverage

blib/lib/YAML/PP/Lexer.pm
Criterion Covered Total %
condition 37 44 84.0


and 3 conditions

line !l l&&!r l&&r condition
202 1036 4194 67 not $spaces and substr($$yaml, 0, 1) eq "%"
208 1036 2697 1497 not $spaces and $$yaml =~ s/\A(---|\.\.\.)(?=$RE_WS|\z)//
3596 87 50 $self->flowcontext and $$yaml =~ /\A[ \t]+(#.*)?\z/
284 120 1 0 $self->flowcontext and $$yaml =~ s/\A:(?=[,\{\}\[\]])//
427 186 369 132 not $spaces and $$yaml =~ s/\A(---|\.\.\.)(?=$RE_WS|\z)//
492 1773 0 5 @lines > 1 and $lines[-1] eq ""
569 281 139 60 not $spaces and $content =~ /\A(---|\.\.\.)(?=$RE_WS|\z)/
647 118 0 0 not $spaces and $$yaml =~ /\A(---|\.\.\.)(?=$RE_WS|\z)/
857 0 0 9 $trailing_ws and $$yaml =~ s/\A(#.*)?\z//

or 2 conditions

line l !l condition
811 53 14 $ENV{'YAML_PP_RESERVED_DIRECTIVE'} || 'warn'

or 3 conditions

line l !l&&r !l&&!r condition
8 1 0 41 $ENV{'YAML_PP_DEBUG'} || $ENV{'YAML_PP_TRACE'}
277 3709 76 6580 $first eq " " or $first eq "\t"
286 204 4123 2 $self->flowcontext or $self->block
343 349 809 2431 $first eq "{" or $first eq "["
348 809 1274 $first eq "}" or $first eq "]"