Branch Coverage

blib/lib/Protocol/DBus/Marshal.pm
Criterion Covered Total %
branch 45 72 62.5


line true false branch
59 123 90 $_data_are_not_list ? :
61 0 213 unless (defined $datum)
66 9 204 if (index($sct, 'a') == 0) { }
11 193 elsif (index($sct, '(') == 0) { }
33 160 elsif ($sct eq 'v') { }
87 3 157 if ($sct eq 'h') { }
9 148 elsif ($sct eq 'o') { }
30 118 elsif ($sct eq 's') { }
89 0 3 unless defined $fd
93 2 1 unless (defined $idx)
101 0 9 unless ($datum =~ m[\A/(?:[A-Za-z0-9_]+(?:/[A-Za-z0-9_]+)*)?\z])
137 3 6 if ($array_start % 8)
144 6 3 if (0 == index($sct, '{')) { }
148 2 4 $DICT_CANONICAL ? :
163 3 6 if $compensate_align8
211 110 1605 if (substr($sct_sig, 0, 1) eq 'a') { }
36 1569 elsif (substr($sct_sig, 0, 1) eq '(') { }
165 1404 elsif (substr($sct_sig, 0, 1) eq 'v') { }
220 46 64 if (substr($sct_sig, 1, 1) eq '{') { }
275 0 1404 if ($FILEHANDLES and $sct_sig eq 'h') { }
372 1032 elsif ($is_string) { }
286 372 1032 $is_string ? :
296 0 165 unless length $sig
303 0 165 $PRESERVE_VARIANT_SIGNATURES ? :
312 448 1116 if ($pack_tmpl = {g => 'C/a x', o => 'L/a x', s => 'L/a x'}->{$sct_sig}) { }
316 0 1116 unless ($pack_tmpl = {"b" => "L","d" => "d","h" => "L","i" => "l","n" => "s","q" => "S","t" => "Q","u" => "L","x" => "q","y" => "C"}->{$sct_sig})
387 0 0 if $sig_offset == length $sig
399 0 0 if ($next_sct eq 'v') { }
0 0 elsif ($next_sct eq 'g') { }
0 0 elsif ({g => 'C/a x', o => 'L/a x', s => 'L/a x'}->{$next_sct}) { }
0 0 elsif (my $width = {b => 4, d => 8, g => 2, h => 4, i => 4, n => 2, o => 5, q => 2, s => 5, t => 8, u => 4, x => 8, y => 1}->{$next_sct}) { }
405 0 0 unless $ok
429 0 0 if ($char0 eq 'a') { }
0 0 elsif ($char0 eq '(') { }
436 0 0 unless $ok
456 0 0 $_ENDIAN_PACK eq '<' ? :