Branch Coverage

blib/lib/App/MARC/Validator/Report.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
40 2 6 if (not &getopts("e:hlp:v", $self->{'_opts'}) or $self->{'_opts'}{'h'} or @ARGV < 1)
50 2 4 if ($exit_code != 0)
54 1 3 if ($self->{'_opts'}{'l'}) { }
67 5 0 if ($self->{'_opts'}{'p'} eq "all" or $self->{'_opts'}{'p'} eq $plugin)
68 2 3 if (keys %{$$self{"_list"}{$plugin};} == 0)
73 4 1 if ($self->{'_opts'}{'e'} eq "all" or $self->{'_opts'}{'e'} eq $error)
79 11 8 if ($err_hr->{'error'} eq $error)
87 4 7 if ($i == 0) { }
110 3 0 if ($self->{'_opts'}{'p'} eq "all" or $self->{'_opts'}{'p'} eq $plugin)
111 2 1 if (keys %{$$self{"_list"}{$plugin};} == 0)
135 1 9 unless (exists $self->{'_report'}{$plugin}{'checks'})
139 1 8 unless (exists $self->{'_report'}{$plugin}{'checks'}{'not_valid'})
143 8 0 unless (exists $self->{'_list'}{$plugin})
149 6 8 if (not exists $self->{'_list'}{$plugin}{$error_hr->{'error'}}) { }
152 0 8 if (&none(sub { $_ eq $record_id; } , @{$self->{'_list'}{$plugin}{$error_hr->{'error'}};}))