Branch Coverage

blib/lib/App/Image/Generator.pm
Criterion Covered Total %
branch 5 16 31.2


line true false branch
45 2 2 if (not &getopts("hi:p:s:v", $self->{'_opts'}) or $self->{'_opts'}{'h'} or @ARGV < 1)
65 1 1 unless ($self->{'_opts'}{'s'} =~ /^(\d+)x(\d+)$/ms)
71 1 0 if (defined $self->{'_opts'}{'p'} and &none(sub { $self->{'_opts'}{'p'} eq $_; } , @PATTERNS))
83 0 0 if ($type eq "jpg")
89 0 0 if ($self->{'_opts'}{'i'} ne $EMPTY_STR) { }
0 0 elsif (defined $self->{'_opts'}{'p'} and $self->{'_opts'}{'p'} eq 'checkerboard') { }
95 0 0 $self->{'_opts'}{'v'} ? :
118 0 0 if ($App::Image::Generator::EVAL_ERROR)