Branch Coverage

blib/lib/App/MARC/Validator/Report.pm
Criterion Covered Total %
branch 21 28 75.0


line true false branch
39 2 4 if (not &getopts("e:hlp:v", $self->{'_opts'}) or $self->{'_opts'}{'h'} or @ARGV < 1)
49 2 2 if ($exit_code != 0)
53 1 1 if ($self->{'_opts'}{'l'}) { }
66 3 0 if ($self->{'_opts'}{'p'} eq "all" or $self->{'_opts'}{'p'} eq $plugin)
67 2 1 if (keys %{$$self{"_list"}{$plugin};} == 0)
72 1 0 if ($self->{'_opts'}{'e'} eq "all" or $self->{'_opts'}{'e'} eq $error)
78 1 0 if ($err_hr->{'error'} eq $error)
85 1 0 if ($i == 0) { }
107 3 0 if ($self->{'_opts'}{'p'} eq "all" or $self->{'_opts'}{'p'} eq $plugin)
108 2 1 if (keys %{$$self{"_list"}{$plugin};} == 0)
132 1 7 unless (exists $self->{'_report'}{$plugin}{'checks'})
136 1 6 unless (exists $self->{'_report'}{$plugin}{'checks'}{'not_valid'})
140 6 0 unless (exists $self->{'_list'}{$plugin})
146 2 0 if (not exists $self->{'_list'}{$plugin}{$error_hr->{'error'}}) { }