Branch Coverage

blib/lib/Mojolicious/Plugin/Images/Service.pm
Criterion Covered Total %
branch 27 50 54.0


line true false branch
17 0 12 unless @_ <= 2
0 12 unless @_ >= 2
18 9 2 $self->ext ? :
26 0 49 unless @_ <= 2
0 49 unless @_ >= 2
28 44 2 $self->ext ? :
33 0 12 unless @_ <= 2
0 12 unless @_ >= 2
37 0 11 unless @_ <= 2
0 11 unless @_ >= 2
38 6 0 unless $self->read_options
45 0 1 unless @_ <= 3
0 1 unless @_ >= 3
55 0 1 if (ref $trans eq 'CODE') { }
0 1 elsif (ref $trans eq 'ARRAY') { }
0 1 elsif ($trans and $trans =~ /^([\w\-:]+)\#([\w]+)$/u) { }
71 0 0 if $self->namespace
83 0 30 unless @_ <= 2
0 30 unless @_ >= 2
85 13 3 if io($canonpath)->is_absolute
90 0 6 unless @_ <= 3
0 6 unless @_ >= 3
95 0 1 unless io()->dir($dir)->exists
96 1 0 unless $self->write_options
1 0 unless $new->write('file', $abs_path, %{{} unless $self->write_options;})