Condition Coverage

inc/YAML/Loader.pm
Criterion Covered Total %
condition 20 82 24.3


and 3 conditions

line !l l&&!r l&&r condition
38 0 2 0 length $self->stream and not $$self{'stream'} =~ s/(.)\n\Z/$1/s
68 2 0 0 @words and $words[0] =~ /^#(\w+):(\S.*)$/
262 0 0 0 exists $$node{"\aYAML\aVALUE\a"} and scalar keys %$node == 1
269 0 0 0 $type eq 'scalar' and length $class
0 0 0 $type eq 'scalar' and length $class and not ref $node
327 4 176 420 not $self->done and $self->indent == $self->offset->[$self->level]
375 2 0 60 not $self->done and $self->indent == $self->offset->[$self->level]
576 0 0 0 not $self->done and $self->indent == $self->offset->[$self->level]
592 0 0 0 not $self->done and $self->indent == $self->offset->[$self->level]
606 0 664 4 @{$self->lines;} and $self->lines->[0] =~ /^\s*(\#|$)/
637 0 298 182 $type == 2 and $self->preface =~ /^(\s*(\!\S*|\&\S+))*\s*$/
640 0 0 0 length $1 and $1 == 0
648 0 0 0 @{$self->lines;} and $self->lines->[0] =~ /^\s*#/
656 0 0 0 $self->lines->[0] =~ /^( *)\S/ and length $1 > $offset
686 0 0 0 @{$self->lines;} and $self->lines->[0] =~ /^( *)(\#)/
0 0 0 @{$self->lines;} and $self->lines->[0] =~ /^( *)(\#)/ and length $1 < $offset
704 480 0 0 $type == 1 and $self->lines->[0] =~ /^ {$offset}(.*)$/

or 2 conditions

line l !l condition
24 2 0 $_[0] || ''
92 0 2 $directives{'YAML'} ||= '1.0'
93 0 2 $directives{'TAB'} ||= 'NONE'
166 180 2 $self->offset->[$self->level] ||= 0
257 0 0 $1 || ''
0 0 $2 || ''
281 0 0 $1 || ''
0 0 $2 || ''

or 3 conditions

line l !l&&r !l&&!r condition
280 0 0 0 $$YAML::TagClass{$explicit} or $explicit =~ m[^perl/(\@|\$)?([a-zA-Z](\w|::)+)$]
295 0 0 0 $$YAML::TagClass{$explicit} || $2
412 0 0 1330 $implicit ||= $top_implicit
413 0 0 1330 $explicit ||= $top_explicit
564 0 0 1270 $value =~ /^[\@\`\^]/ or $value =~ /^[\-\?]\s/