Branch Coverage

blib/lib/RTMP/Client.pm
Criterion Covered Total %
branch 0 180 0.0


line true false branch
45 0 0 if substr($app_name, 0, 1) eq '/'
48 0 0 if ($server_addr =~ /^[\d\.]+$/) { }
53 0 0 unless socket SOCK, 2, 1, 6
54 0 0 unless connect SOCK, $address
59 0 0 unless rtmp_handshake()
307 0 0 if $length > 65536
337 0 0 if $boolean eq 'false'
338 0 0 if $boolean eq 'true'
353 0 0 if $length > 65536
386 0 0 if ($chunk_id eq '000000') { }
0 0 elsif ($chunk_id eq '000001') { }
407 0 0 if ($fmt eq '00') { }
0 0 elsif ($fmt eq '01') { }
0 0 elsif ($fmt eq '10') { }
0 0 elsif ($fmt eq '11') { }
413 0 0 if $debug_flag
414 0 0 if $debug_flag
422 0 0 if ($chunk_timestamp >= 16777215)
450 0 0 if ($chunk_timestamp >= 16777215)
470 0 0 if ($chunk_timestamp >= 16777215)
490 0 0 if ($chunk_id == 2 and get_rtmp_chunk_msg_stream_id($chunk_id) == 0)
494 0 0 if ($msg_type_id == 1) { }
0 0 elsif ($msg_type_id == 2) { }
0 0 elsif ($msg_type_id == 3) { }
0 0 elsif ($msg_type_id == 4) { }
0 0 elsif ($msg_type_id == 5) { }
0 0 elsif ($msg_type_id == 6) { }
524 0 0 if ($event_type == 0) { }
0 0 elsif ($event_type == 1) { }
0 0 elsif ($event_type == 2) { }
0 0 elsif ($event_type == 3) { }
0 0 elsif ($event_type == 4) { }
0 0 elsif ($event_type == 5) { }
0 0 elsif ($event_type == 6) { }
0 0 elsif ($event_type == 7) { }
601 0 0 if ($msg_type_id == 20)
607 0 0 if ($msg_length <= $chunk_size) { }
616 0 0 unless defined $msg_length_remain
617 0 0 if $msg_length_remain <= 0
618 0 0 if ($msg_length_remain <= $chunk_size) { }
645 0 0 unless defined $msg_counter
655 0 0 if ($chunk_id =~ /[\d]+/) { }
0 0 elsif ($chunk_id eq 'rtmp_protocol_control_message') { }
661 0 0 if ($rtmp_msg_type_id == 8) { }
0 0 elsif ($rtmp_msg_type_id == 9) { }
0 0 elsif ($rtmp_msg_type_id == 20 or $rtmp_msg_type_id == 17) { }
0 0 elsif ($rtmp_msg_type_id == 18 or $rtmp_msg_type_id == 15) { }
0 0 elsif ($rtmp_msg_type_id == 19 or $rtmp_msg_type_id == 16) { }
0 0 elsif ($rtmp_msg_type_id == 22) { }
691 0 0 if $debug_flag
712 0 0 unless ref $function eq 'CODE'
733 0 0 if ($how_many_btyes_recieved_noack >= get_rtmp_window())
749 0 0 if (time - $time_flag >= $report_loop_time)
769 0 0 unless $wanted_length =~ /^[1-9][\d]*$/
770 0 0 unless $time_out
776 0 0 if (time - $start_time >= $time_out)
783 0 0 unless $success_length
786 0 0 if $wanted_length <= 0
838 0 0 if ($col_counter == 16)
860 0 0 unless $chunk_id =~ /^[1-9][\d]*$/
865 0 0 unless defined @rtmp_timer_start
866 0 0 if (defined $rtmp_timer_start[$chunk_id]) { }
869 0 0 if $rtmp_timestamp < 0
878 0 0 if ($format eq '3bytes')
894 0 0 unless $chunk_id =~ /^[1-9][\d]*$/
898 0 0 unless defined @rtmp_timer_start
910 0 0 unless $chunk_id =~ /^[1-9][\d]*$/
912 0 0 unless defined @rtmp_msg_length
924 0 0 unless $chunk_id =~ /^[1-9][\d]*$/
925 0 0 unless defined @rtmp_msg_length
936 0 0 unless $chunk_id =~ /^[1-9][\d]*$/
938 0 0 unless defined @rtmp_msg_type_id
950 0 0 unless $chunk_id =~ /^[1-9][\d]*$/
951 0 0 unless defined @rtmp_msg_type_id
962 0 0 unless $chunk_id =~ /^[1-9][\d]*$/
964 0 0 unless defined @rtmp_msg_stream_id
976 0 0 unless $chunk_id =~ /^[1-9][\d]*$/
977 0 0 unless defined @rtmp_msg_stream_id
991 0 0 unless $new_chunk_size =~ /^[\d]{1,5}$/
992 0 0 if $new_chunk_size > 65536
1002 0 0 if (defined $rtmp_client_chunk_size) { }
1019 0 0 unless defined @rtmp_msg
1031 0 0 unless defined @rtmp_msg
1041 0 0 unless defined @rtmp_msg
1062 0 0 unless defined $rtmp_my_window_size
1082 0 0 unless defined $rtmp_peer_window_size
1111 0 0 if $debug_flag
1126 0 0 if ($msg)
1130 0 0 if ($msg_type == 20) { }
0 0 elsif ($msg_type == 22) { }