Branch Coverage

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


line true false branch
85 16 19 unless $filename =~ m[ \A doc/ ]x
87 8 11 unless ($doc_file)
92 10 9 unless $filename =~ m[ \A doc/$lang/ ]x
94 3 6 unless ($found_file =~ m[ \A doc/$lang/ ]x)
99 2 7 if $type and not $filename =~ m[ \A doc/[^/]+/.*\.$type \z ]x
101 1 6 if ($type and not $found_file =~ m[ \A doc/[^/]+/.*\.$type \z ]x)
106 3 4 if $found_file =~ m[ \A doc/$lang/.*\.$type \z ]x
117 1 14 unless (-e $self->opm_file)
131 3 11 if $self->error_string
140 1 9 unless (-e $self->opm_file)
157 1 8 if $self->error_string
160 0 8 unless $is_valid
187 8 26 if $maximum
188 8 26 if $minimum
204 2 28 if $encode ne 'Base64'
225 8 2 if $language eq 'en'
273 9 0 if $encode