Branch Coverage

blib/lib/OPM/Parser.pm
Criterion Covered Total %
branch 32 34 94.1


line true false branch
92 16 19 unless $filename =~ m[ \A doc/ ]ux
94 8 11 unless ($doc_file)
99 10 9 unless $filename =~ m[ \A doc/$lang/ ]ux
101 3 6 unless ($found_file =~ m[ \A doc/$lang/ ]ux)
106 2 7 if $type and not $filename =~ m[ \A doc/[^/]+/.*\.$type \z ]ux
108 1 6 if ($type and not $found_file =~ m[ \A doc/[^/]+/.*\.$type \z ]ux)
113 3 4 if $found_file =~ m[ \A doc/$lang/.*\.$type \z ]ux
124 1 14 unless (-e $self->opm_file)
138 3 11 if $self->error_string
147 1 9 unless (-e $self->opm_file)
164 1 8 if $self->error_string
167 0 8 unless ($params{'ignore_validation'} or $is_valid)
196 8 26 if $maximum
197 8 26 if $minimum
213 2 28 if $encode ne "Base64"
234 8 2 if $language eq "en"
282 9 0 if $encode