Branch Coverage

blib/lib/FlashVideo/RTMPDownloader.pm
Criterion Covered Total %
branch 4 60 6.6


line true false branch
20 0 0 if (-s $file and not $$rtmp_data{'live'})
26 0 0 if (my $socks = 'FlashVideo::Mechanize'->new->get_socks_proxy)
32 0 0 if ($$rtmp_data{'live'} and $self->action eq 'play')
41 0 0 unless defined $pid
42 0 0 unless ($pid)
56 0 0 if ($prog eq 'flvstreamer' and $$rtmp_data{'rtmp'} =~ /^rtmpe:/ || $$rtmp_data{'swfhash'})
57 0 0 $$rtmp_data{'swfhash'} ? :
63 0 0 if ($self->debug)
69 0 0 if ($return != 0 and "@errors" =~ /failed to connect/i)
76 0 0 if ($file ne '-' and -s $file < 100 || !$self->check_file($file))
83 0 0 if ($return == 2) { }
0 0 elsif ($return) { }
95 0 0 if (is_program_on_path('rtmpdump')) { }
0 0 elsif (is_program_on_path('flvstreamer')) { }
111 2 2 $debug ? :
116 2 4 ref $$rtmp_data{$arg} eq 'ARRAY' ? :
136 0 0 if ($^O =~ /mswin/i)
155 0 0 if (/^((?:DEBUG:|WARNING:|Closing connection|ERROR: No playpath found).*)\n/) { }
0 0 elsif (/^(ERROR: .*)\012/) { }
0 0 elsif (m[^([0-9.]+) kB(?:\s+/ \S+ sec)?(?: \(([0-9.]+)%\))?]i) { }
0 0 elsif (/\012$/) { }
164 0 0 if ($$self{'downloaded'} and $percent != 0)
172 0 0 if ($l =~ /^[A-F0-9]{,2}(?:\s+[A-F0-9]{2})*\s*$/) { }
0 0 elsif ($l =~ /Download complete/) { }
0 0 elsif ($l =~ /\s+filesize\s+(\d+)/) { }
0 0 elsif ($l =~ /\w/) { }
179 0 0 if $$self{'downloaded'}
182 0 0 if ($l =~ /^RTMPDump v([0-9.]+)/ and $1 < 2.2)
189 0 0 if (/open3/)
200 0 0 if (defined $$self{'stream'} and $$self{'downloaded'} > 300000)