Branch Coverage

blib/lib/Protocol/DBus/Message.pm
Criterion Covered Total %
branch 29 44 65.9


line true false branch
27 8 0 if (my($hdr, $hdr_len, $is_be) = Protocol::DBus::Message::Header::parse_simple($buf_sr))
29 8 0 if (length $$buf_sr >= $hdr_len + $hdr->[4])
33 6 2 if ($hdr->[4])
34 0 6 unless defined $body_sig
39 6 2 if ($body_sig)
42 0 6 $is_be ? :
64 0 2 if @missing
69 0 2 if ($opts{'flags'})
79 2 0 if ($opts{'hfields'})
96 1 8 if ($field_num == {DESTINATION => 6, ERROR_NAME => 4, INTERFACE => 2, MEMBER => 3, PATH => 1, REPLY_SERIAL => 5, SENDER => 7, SIGNATURE => 8, UNIX_FDS => 9}->{'SIGNATURE'})
104 1 1 if ($opts{'body'}) { }
0 1 elsif ($opts{'body_sig'}) { }
105 0 1 unless $opts{'body_sig'}
131 27 0 if ($_[1] =~ tr[0-9][\000-/:-\377]c)
193 0 2 unless @names
196 0 2 unless $_[0]{'_flags'} & ({ALLOW_INTERACTIVE_AUTHORIZATION => 4, NO_AUTO_START => 2, NO_REPLY_EXPECTED => 1}->{$name} || do { die "Invalid flag name: \342\200\234$name\342\200\235" })
239 1 1 if ($self->{'_body_sig'})
242 0 1 $_use_be ? :
247 0 2 if $fds_ar and @$fds_ar
258 1 1 $body_m_sr ? :
261 0 2 $_use_be ? :
268 1 1 if $body_m_sr