Branch Coverage

blib/lib/OTRS/OPM/Parser.pm
Criterion Covered Total %
branch 34 34 100.0


line true false branch
86 16 19 unless $filename =~ m[ \A doc/ ]x
88 8 11 unless ($doc_file)
93 10 9 unless $filename =~ m[ \A doc/$lang/ ]x
95 3 6 unless ($found_file =~ m[ \A doc/$lang/ ]x)
100 2 7 if $type and not $filename =~ m[ \A doc/[^/]+/.*\.$type \z ]x
102 1 6 if ($type and not $found_file =~ m[ \A doc/[^/]+/.*\.$type \z ]x)
107 3 4 if $found_file =~ m[ \A doc/$lang/.*\.$type \z ]x
118 1 6 unless (-e $self->opm_file)
132 1 5 if $self->error_string
144 4 1 if $self->error_string
153 1 8 unless (-e $self->opm_file)
170 1 7 if $self->error_string
207 6 24 if $maximum
208 6 24 if $minimum
224 4 25 if $encode ne 'Base64'
245 7 2 if $language eq 'en'
293 9 1 if $encode