Condition Coverage

blib/lib/YAML/Loader.pm
Criterion Covered Total %
condition 93 109 85.3


and 3 conditions

line !l l&&!r l&&r condition
268 1 0 21 exists $node->{"\aYAML\aVALUE\a"} and scalar keys %$node == 1
274 37 2 4 $type eq 'scalar' and length $class
39 0 4 $type eq 'scalar' and length $class and not ref $node
279 24 10 9 length $class and $YAML::LoadBlessed
335 175 331 1386 not $self->done and $self->indent == $self->offset->[$self->level]
389 108 28 368 not $self->done and $self->indent == $self->offset->[$self->level]
489 2607 0 6 $self->numify and defined $node
2607 0 6 $self->numify and defined $node and not ref $node
0 0 6 $self->numify and defined $node and not ref $node and length $node
0 3 3 $self->numify and defined $node and not ref $node and length $node and $node =~ /\A-?(?:0|[1-9][0-9]*)?(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?\z/
633 14 6 57 not $self->done and $self->indent == $self->offset->[$self->level]
649 22 22 141 not $self->done and $self->indent == $self->offset->[$self->level]
663 44 2653 529 @{$self->lines;} and $self->lines->[0] =~ /^\s*(\#|$)/
698 172 1092 644 $type == 2 and $self->preface =~ /^(\s*(\!\S*|\&\S+))*\s*$/
702 53 8 1 length $explicit_indent and $explicit_indent == 0
710 0 52 1 @{$self->lines;} and $self->lines->[0] =~ /^\s*#/
718 0 1 52 $self->lines->[0] =~ /^( *)\S/ and length $1 > $offset
732 266 2 376 defined $zero_indent->[$level] and not $zero_indent->[$level]
268 327 49 defined $zero_indent->[$level] and not $zero_indent->[$level] and $self->lines->[0] =~ /^( {$offset,})-(?: |$)/
761 0 221 12 @{$self->lines;} and $self->lines->[0] =~ /^( *)(\#)/
221 7 5 @{$self->lines;} and $self->lines->[0] =~ /^( *)(\#)/ and length $1 < $offset
770 1 4 7 @{$self->lines;} and $self->lines->[0] =~ /^( *)(\#)/
789 1697 43 183 $type == 1 and $self->lines->[0] =~ /^ {$offset}(.*)$/

or 2 conditions

line l !l condition
24 319 0 $_[0] || ''
99 12 304 $directives{'YAML'} ||= '1.0'
100 2 314 $directives{'TAB'} ||= 'NONE'
182 406 238 $self->offset->[$self->level] ||= 0
262 44 0 $1 || ''
19 25 $2 || ''
286 22 0 $1 || ''
5 17 $2 || ''

or 3 conditions

line l !l&&r !l&&!r condition
285 2 13 7 $YAML::TagClass->{$explicit} or $explicit =~ m[^perl/(\@|\$)?([a-zA-Z](\w|::)+)$]
300 2 13 0 $YAML::TagClass->{$explicit} || $2
405 3 0 358 $preface =~ /^ (\s*) ((') (?:''|[^'])*? ' \s* \: (?:\ |$).*) $/x or $preface =~ /^ (\s*) ((") (?:\\\\|[^"])*? " \s* \: (?:\ |$).*) $/x
3 1 357 $preface =~ /^ (\s*) ((') (?:''|[^'])*? ' \s* \: (?:\ |$).*) $/x or $preface =~ /^ (\s*) ((") (?:\\\\|[^"])*? " \s* \: (?:\ |$).*) $/x or $preface =~ /^ (\s*) (\?.*$)/x
1 35 322 $preface =~ /^ (\s*) ((') (?:''|[^'])*? ' \s* \: (?:\ |$).*) $/x or $preface =~ /^ (\s*) ((") (?:\\\\|[^"])*? " \s* \: (?:\ |$).*) $/x or $preface =~ /^ (\s*) (\?.*$)/x or $preface =~ /^ (\s*) ([^'"\s:#&!\[\]\{\},*|>].*\:(\ .*|$))/x
450 0 2 2756 $implicit ||= $top_implicit
451 4 27 2727 $explicit ||= $top_explicit
621 1 1 2590 $value =~ /^[\@\`]/ or $value =~ /^[\-\?]\s/