Branch Coverage

blib/lib/App/Kramerius/To/Images.pm
Criterion Covered Total %
branch 0 52 0.0


line true false branch
36 0 0 if (defined $self->{'lwp_user_agent'}) { }
37 0 0 unless ($self->{'lwp_user_agent'}->isa("LWP::UserAgent"))
59 0 0 if (not &getopts("hqv", $self->{'_opts'}) or not -r "ROOT" and @ARGV < 2 or $self->{'_opts'}{'h'})
74 0 0 if (@ARGV > 1) { }
0 0 elsif (-r 'ROOT') { }
84 0 0 unless (defined $self->{'_kramerius_obj'})
93 0 0 if ($self->{'_opts'}{'v'})
98 0 0 if ($self->{'_kramerius_obj'}->version == 3) { }
0 0 elsif ($self->{'_kramerius_obj'}->version == 4) { }
105 0 0 if ($self->{'_opts'}{'v'})
111 0 0 if ($res->is_success) { }
122 0 0 unless (@page_uris)
130 0 0 unless (-r $path_segments[-1])
131 0 0 unless ($self->{'_opts'}{'q'})
160 0 0 if ($res->is_success) { }
170 0 0 if ($res->headers->content_type ne "application/json")
179 0 0 if ($App::Kramerius::To::Images::EVAL_ERROR)
187 0 0 if ($page_hr->{'model'} ne "page")
194 0 0 unless ($self->{'_opts'}{'q'})
198 0 0 unless (-r $pid . ".jpg")
206 0 0 if ($images == 0)
208 0 0 unless ($self->{'_opts'}{'q'})
213 0 0 unless (-r $output_file)
242 0 0 if (ref $page_hr->{'title'} eq 'ARRAY') { }
0 0 elsif (ref $page_hr->{'title'} eq '') { }
257 0 0 if ($self->{'_opts'}{'v'})