Condition Coverage

blib/lib/WWW/YouTube/Download.pm
Criterion Covered Total %
condition 1 37 2.7


and 3 conditions

line !l l&&!r l&&r condition
120 0 0 0 -f $file and not $overwrite
251 0 0 0 $args->{'fmt_list'} and $args->{'url_encoded_fmt_stream_map'}
311 1 0 0 $args->{'fmt_list'} and $args->{'url_encoded_fmt_stream_map'}

or 2 conditions

line l !l condition
48 0 0 $args ||= {}
51 0 0 $args->{'fmt'} || $data->{'fmt'} || 18
60 0 0 $args ||= {}
64 0 0 $args->{'fmt'} || $data->{'fmt'} || 18
74 0 0 $data->{'video_url_map'}{$fmt}{'resolution'} || '0x0'

or 3 conditions

line l !l&&r !l&&!r condition
52 0 0 0 $data->{'video_url_map'}{$fmt}{'url'} || croak("this video does not offer format (fmt) $fmt")
66 0 0 0 $data->{'video_url_map'}{$fmt}{'url'} || croak("this video has not supported fmt: $fmt")
67 0 0 0 $args->{'filename'} ||= $args->{'file_name'}
74 0 0 0 $data->{'video_url_map'}{$fmt}{'suffix'} || _suffix($fmt)
129 0 0 0 $verbose or $self->{'verbose'}
380 0 0 0 $query->{'sig'} || ($query->{'s'} ? _getsig($query->{'s'}) : undef)