Condition Coverage

inc/YAML/Loader.pm
Criterion Covered Total %
condition 25 82 30.4


and 3 conditions

line !l l&&!r l&&r condition
35 0 1 0 length $self->stream and not $$self{'stream'} =~ s/(.)\n\Z/$1/s
65 1 0 0 @words and $words[0] =~ /^#(\w+):(\S.*)$/
259 0 0 0 exists $$node{"\aYAML\aVALUE\a"} and scalar keys %$node == 1
266 0 0 0 $type eq 'scalar' and length $class
0 0 0 $type eq 'scalar' and length $class and not ref $node
324 0 0 0 not $self->done and $self->indent == $self->offset->[$self->level]
372 1 0 3 not $self->done and $self->indent == $self->offset->[$self->level]
573 0 0 0 not $self->done and $self->indent == $self->offset->[$self->level]
589 0 1 11 not $self->done and $self->indent == $self->offset->[$self->level]
603 0 4 0 @{$self->lines;} and $self->lines->[0] =~ /^\s*(\#|$)/
634 11 1 1 $type == 2 and $self->preface =~ /^(\s*(\!\S*|\&\S+))*\s*$/
637 1 0 0 length $1 and $1 == 0
645 0 1 0 @{$self->lines;} and $self->lines->[0] =~ /^\s*#/
653 0 0 1 $self->lines->[0] =~ /^( *)\S/ and length $1 > $offset
683 0 12 0 @{$self->lines;} and $self->lines->[0] =~ /^( *)(\#)/
12 0 0 @{$self->lines;} and $self->lines->[0] =~ /^( *)(\#)/ and length $1 < $offset
701 2 1 11 $type == 1 and $self->lines->[0] =~ /^ {$offset}(.*)$/

or 2 conditions

line l !l condition
21 1 0 $_[0] || ''
89 0 1 $directives{'YAML'} ||= '1.0'
90 0 1 $directives{'TAB'} ||= 'NONE'
163 0 1 $self->offset->[$self->level] ||= 0
254 0 0 $1 || ''
0 0 $2 || ''
278 0 0 $1 || ''
0 0 $2 || ''

or 3 conditions

line l !l&&r !l&&!r condition
277 0 0 0 $$YAML::TagClass{$explicit} or $explicit =~ m[^perl/(\@|\$)?([a-zA-Z](\w|::)+)$]
292 0 0 0 $$YAML::TagClass{$explicit} || $2
409 0 0 2 $implicit ||= $top_implicit
410 0 0 2 $explicit ||= $top_explicit
561 0 0 2 $value =~ /^[\@\`\^]/ or $value =~ /^[\-\?]\s/