Condition Coverage

lib/File/ValueFile/Simple/Reader.pm
Criterion Covered Total %
condition 7 134 5.2


and 3 conditions

line !l l&&!r l&&r condition
51 0 2 0 ref $self->{$key} ne "ARRAY" and $self->{$key} ne "all"
66 0 1 0 $opts{'utf8'} and $opts{'utf8'} ne "auto"
108 1 0 0 scalar @args == 4 and not defined $args[-1]
1 0 0 scalar @args == 4 and not defined $args[-1] and not defined $args[-2]
111 0 0 1 scalar @args and scalar @args <= 2
319 0 0 0 Data::Identifier::eq($format, $tagpool_source_format) || Data::Identifier::eq($format, $tagpool_taglist_format_v1) and scalar @line >= 2
0 0 0 Data::Identifier::eq($format, $tagpool_source_format) || Data::Identifier::eq($format, $tagpool_taglist_format_v1) and scalar @line >= 2 and defined $line[0]
0 0 0 Data::Identifier::eq($format, $tagpool_source_format) || Data::Identifier::eq($format, $tagpool_taglist_format_v1) and scalar @line >= 2 and defined $line[0] and defined $line[1]
0 0 0 Data::Identifier::eq($format, $tagpool_httpd_htdirectories_format) and scalar @line == 3
0 0 0 Data::Identifier::eq($format, $tagpool_httpd_htdirectories_format) and scalar @line == 3 and defined $line[0]
0 0 0 Data::Identifier::eq($format, $tagpool_httpd_htdirectories_format) and scalar @line == 3 and defined $line[0] and defined $line[1]
0 0 0 Data::Identifier::eq($format, $tagpool_httpd_htdirectories_format) and scalar @line == 3 and defined $line[0] and defined $line[1] and defined $line[2]
0 0 0 Data::Identifier::eq($format, $tagpool_httpd_htdirectories_format) and scalar @line == 3 and defined $line[0] and defined $line[1] and defined $line[2] and $line[0] eq "directory"
320 0 0 0 $line[0] eq "tag" and scalar @line == 3
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2]
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3]
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3] and defined $line[4]
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3] and defined $line[4] and not defined $line[5]
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3] and defined $line[4] and not defined $line[5] and defined $line[6]
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3] and defined $line[4] and not defined $line[5] and defined $line[6] and $line[2] eq "ddd60c5c-2934-404f-8f2d-fcb4da88b633"
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3] and defined $line[4] and not defined $line[5] and defined $line[6] and $line[2] eq "ddd60c5c-2934-404f-8f2d-fcb4da88b633" and $line[4] eq "bfae7574-3dae-425d-89b1-9c087c140c23"
330 0 0 0 scalar @line > 1 and defined $line[0]
0 0 0 scalar @line > 1 and defined $line[0] and defined $line[1]
0 0 0 scalar @line > 1 and defined $line[0] and defined $line[1] and $line[0] =~ /^tag-(?:ise|metadata|relation)$/
0 0 0 $line[0] eq "tag" and scalar @line == 3
331 0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2]
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3]
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3] and defined $line[4]
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3] and defined $line[4] and not defined $line[5]
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3] and defined $line[4] and not defined $line[5] and defined $line[6]
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3] and defined $line[4] and not defined $line[5] and defined $line[6] and $line[2] eq "ddd60c5c-2934-404f-8f2d-fcb4da88b633"
0 0 0 $line[0] eq "tag-metadata" and scalar @line == 7 and defined $line[2] and not defined $line[3] and defined $line[4] and not defined $line[5] and defined $line[6] and $line[2] eq "ddd60c5c-2934-404f-8f2d-fcb4da88b633" and $line[4] eq "bfae7574-3dae-425d-89b1-9c087c140c23"
342 0 0 0 defined $entry and $entry =~ /^(?:[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}|[0-2](?:\.(?:0|[1-9][0-9]*))+|[a-zA-Z][a-zA-Z0-9\+\.\-]+:.*)$/

or 2 conditions

line l !l condition
50 0 2 $self->{$key} ||= "all"
65 0 1 $opts{'utf8'} //= "auto"
126 0 0 $self->{'features'} //= []
259 0 0 $hash{$line[0]} //= []

or 3 conditions

line l !l&&r !l&&!r condition
130 0 0 0 $self->{'dot_repreat'} ||= $id->eq("2ec67bbe-4698-4a0c-921d-1f0951923ee6")
317 0 0 0 $format //= $self->format("default", undef)
319 0 0 0 Data::Identifier::eq($format, $tagpool_source_format) || Data::Identifier::eq($format, $tagpool_taglist_format_v1)
320 0 0 0 $line[0] =~ /^tag(?:-.+)?$/ or $line[0] eq "rule"
0 0 0 $line[0] =~ /^tag(?:-.+)?$/ or $line[0] eq "rule" or $line[0] eq "filter"
0 0 0 $line[0] =~ /^tag(?:-.+)?$/ or $line[0] eq "rule" or $line[0] eq "filter" or $line[0] eq "subject"
344 0 0 0 $list{$tag->ise} //= $tag