Branch Coverage

blib/lib/Net/SDP/Media.pm
Criterion Covered Total %
branch 27 58 46.5


line true false branch
85 2 1 if defined $m
111 1 1 if (defined $port)
113 0 0 if (defined $range and $range ne '' and $range ne '1')
138 0 1 if ($$self{'c_net_type'} ne 'IN')
142 0 1 if ($$self{'c_addr_type'} ne 'IP4' and $$self{'c_addr_type'} ne 'IP6')
146 0 1 unless (defined $$self{'c_ttl'})
150 0 0 if (defined $range and $range ne '' and $range ne '1')
164 1 0 if ($$self{'c_ttl'})
178 1 1 if defined $address
185 1 1 if defined $addr_type
193 1 1 if defined $port
200 1 1 if defined $ttl
207 1 2 if defined $media
214 2 1 if defined $title
221 0 1 if defined $transport
228 0 1 if defined $net_type
248 0 0 unless defined $name
251 0 0 if defined $value
260 0 0 unless defined $fmt_num
263 0 0 if ($$self{'m_fmt_list'}[$n] == $fmt_num)
278 0 1 if (defined $fmt_num)
302 0 0 if (defined $fmt_list)
303 0 0 if ref $fmt_list ne 'ARRAY'
323 0 0 if (exists $rtpmap{$_}) { }
0 0 elsif (exists $Net::SDP::Media::avt_profile_map{$_}) { }
339 0 1 unless defined $format_num
348 0 1 unless (defined $mime)
352 0 1 unless (defined $mime)
359 0 1 if ($mime_media ne $$self{'m_media'})