Condition Coverage

blib/lib/YAML/Old/Loader.pm
Criterion Covered Total %
condition 73 82 89.0


and 3 conditions

line !l l&&!r l&&r condition
37 0 256 1 length $self->stream and not $$self{'stream'} =~ s/(.)\n\Z/$1/s
67 163 93 17 @words and $words[0] =~ /^#(\w+):(\S.*)$/
261 1 0 20 exists $$node{"\aYAML\aVALUE\a"} and scalar keys %$node == 1
268 36 4 6 $type eq 'scalar' and length $class
40 3 3 $type eq 'scalar' and length $class and not ref $node
326 139 328 1291 not $self->done and $self->indent == $self->offset->[$self->level]
374 91 23 318 not $self->done and $self->indent == $self->offset->[$self->level]
576 12 5 54 not $self->done and $self->indent == $self->offset->[$self->level]
592 18 20 130 not $self->done and $self->indent == $self->offset->[$self->level]
606 44 2389 527 @{$self->lines;} and $self->lines->[0] =~ /^\s*(\#|$)/
637 161 1025 576 $type == 2 and $self->preface =~ /^(\s*(\!\S*|\&\S+))*\s*$/
640 51 4 1 length $1 and $1 == 0
648 0 50 1 @{$self->lines;} and $self->lines->[0] =~ /^\s*#/
656 0 1 50 $self->lines->[0] =~ /^( *)\S/ and length $1 > $offset
686 1 207 19 @{$self->lines;} and $self->lines->[0] =~ /^( *)(\#)/
208 8 11 @{$self->lines;} and $self->lines->[0] =~ /^( *)(\#)/ and length $1 < $offset
704 1563 40 169 $type == 1 and $self->lines->[0] =~ /^ {$offset}(.*)$/

or 2 conditions

line l !l condition
23 258 0 $_[0] || ''
91 12 242 $directives{'YAML'} ||= '1.0'
92 2 252 $directives{'TAB'} ||= 'NONE'
165 387 189 $self->offset->[$self->level] ||= 0
256 47 0 $1 || ''
20 27 $2 || ''
280 14 0 $1 || ''
2 12 $2 || ''

or 3 conditions

line l !l&&r !l&&!r condition
279 2 11 9 $$YAML::Old::TagClass{$explicit} or $explicit =~ m[^perl/(\@|\$)?([a-zA-Z](\w|::)+)$]
294 2 0 11 $$YAML::Old::TagClass{$explicit} || $2
411 0 2 2530 $implicit ||= $top_implicit
412 2 15 2515 $explicit ||= $top_explicit
564 1 1 2398 $value =~ /^[\@\`\^]/ or $value =~ /^[\-\?]\s/