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 4338 18281 326 not $spaces and substr($$yaml, 0, 1) eq "%"
208 4338 14012 4269 not $spaces and $$yaml =~ s/\A(---|\.\.\.)(?=$RE_WS|\z)//
17699 592 59 $self->flowcontext and $$yaml =~ /\A[ \t]+(#.*)?\z/
284 435 83 7 $self->flowcontext and $$yaml =~ s/\A:(?=[,\{\}\[\]])//
427 1733 4218 622 not $spaces and $$yaml =~ s/\A(---|\.\.\.)(?=$RE_WS|\z)//
492 9654 242 90 @lines > 1 and $lines[-1] eq ""
569 2914 1329 200 not $spaces and $content =~ /\A(---|\.\.\.)(?=$RE_WS|\z)/
647 579 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 41 $ENV{'YAML_PP_DEBUG'} || $ENV{'YAML_PP_TRACE'}
277 8956 138 27363 $first eq " " or $first eq "\t"
286 1161 17849 8 $self->flowcontext or $self->block
343 1110 1361 4757 $first eq "{" or $first eq "["
1108 1352 2297 $first eq "}" or $first eq "]"