Branch Coverage

blib/lib/Protocol/DBus/Marshal.pm
Criterion Covered Total %
branch 54 66 81.8


line true false branch
59 123 88 $_data_are_not_list ? :
62 9 202 if (index($sct, 'a') == 0) { }
11 191 elsif (index($sct, '(') == 0) { }
33 158 elsif ($sct eq 'v') { }
83 9 149 if ($sct eq 'o') { }
3 146 elsif ($sct eq 'h') { }
84 0 9 unless ($datum =~ m[\A/(?:[A-Za-z0-9_]+(?:/[A-Za-z0-9_]+)*)?\z])
90 0 3 unless defined $fd
94 2 1 unless (defined $idx)
130 3 6 if ($array_start % 8)
137 6 3 if (0 == index($sct, '{')) { }
141 2 4 $DICT_CANONICAL ? :
156 3 6 if $compensate_align8
204 110 1603 if (substr($sct_sig, 0, 1) eq 'a') { }
36 1567 elsif (substr($sct_sig, 0, 1) eq '(') { }
165 1402 elsif (substr($sct_sig, 0, 1) eq 'v') { }
213 46 64 if (substr($sct_sig, 1, 1) eq '{') { }
266 0 1402 if ($FILEHANDLES and $sct_sig eq 'h')
273 370 1032 $is_string ? :
283 0 165 unless length $sig
290 0 165 $PRESERVE_VARIANT_SIGNATURES ? :
299 444 1116 if ($pack_tmpl = {g => 'C/a x', o => 'L/a x', s => 'L/a x'}->{$sct_sig}) { }
303 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})
390 11 41 if $sig_offset == length $sig
402 0 41 if ($next_sct eq 'v') { }
0 41 elsif ($next_sct eq 'g') { }
3 38 elsif ({g => 'C/a x', o => 'L/a x', s => 'L/a x'}->{$next_sct}) { }
20 18 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}) { }
408 0 0 unless $ok
432 12 6 if ($char0 eq 'a') { }
6 0 elsif ($char0 eq '(') { }
439 4 2 unless $ok
456 15 0 $_ENDIAN_PACK eq '<' ? :