blib/lib/FlashVideo/VideoPreferences/Quality.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 16 | 100.0 |
line | true | false | branch |
---|---|---|---|
44 | 3 | 1 | if (my(@at_or_under_preferred) = grep({$$_[0] <= $max_preferred_size;} @sorted)) { } |
55 | 1 | 11 | unless $name =~ /[a-z]$/i |
57 | 3 | 9 | if (my $resolution = $format_map{lc $name}) { } |
1 | 8 | elsif (my $num = ($name =~ /(\d+)/)[0]) { } | |
74 | 3 | 8 | if ($quality =~ /^(\d+)x(\d+)$/) { } |
1 | 7 | elsif (my $resolution = eval { do { $self->format_to_resolution($quality) } }) { } | |
86 | 7 | 19 | if ($$r[2] eq lc $quality) |
102 | 41 | 22 | if $$r[0] >= $$resolution[0] |