Branch Coverage

blib/lib/PDL/IO/Image.pm
Criterion Covered Total %
branch 24 48 50.0


line true false branch
39 0 0 if ref $_[0] eq 'ARRAY'
44 3 35 ref $_[-1] eq 'HASH' ? :
46 38 0 unless defined $options->{'format'}
47 38 0 unless defined $options->{'format_flag'}
48 38 0 unless defined $options->{'page'}
51 0 38 if (my $flip = $options->{'flip'})
52 0 0 if $flip =~ /H/
53 0 0 if $flip =~ /V/
55 0 38 if (defined $options->{'rotate'})
58 0 38 if (defined $options->{'convert_image_type'})
62 38 0 unless ref $options->{'region'} eq 'ARRAY'
63 3 35 if ($options->{'palette'})
70 2 11 ref $_[-1] eq 'HASH' ? :
72 2 11 if ref $options->{'palette'} eq 'PDL'
73 2 11 defined $palette ? :
77 0 13 if (my $flip = $options->{'flip'})
78 0 0 if $flip =~ /H/
79 0 0 if $flip =~ /V/
81 0 13 if (defined $options->{'rotate'})
84 0 13 if (defined $options->{'rescale'})
87 0 13 if (defined $options->{'rescale_pct'})
90 0 13 if (defined $options->{'convert_image_type'})
94 13 0 unless defined $options->{'format'}
95 13 0 unless defined $options->{'format_flag'}