Branch Coverage

blib/lib/Parse/Matroska/Element.pm
Criterion Covered Total %
branch 31 50 62.0


line true false branch
28 25 0 unless $$self{'depth'}
34 0 0 unless $reader
36 0 0 if $pos ne $$self{'data_pos'}
44 0 4 if $$self{'type'} eq 'skip'
45 2 2 if $$self{'value'}
47 0 2 unless my $reader = $$self{'reader'}
51 1 1 if ($$self{'type'} eq 'binary')
52 0 1 unless $$self{'data_pos'}
56 0 1 if ($keep_bin) { }
67 0 28 unless $$self{'type'} eq 'sub'
69 1 27 if ($$self{'_all_children_read'})
71 0 1 if ($idx == @{$$self{'value'};})
83 22 5 defined $$self{'remaining_len'} ? :
87 5 22 if ($len == 0)
96 0 22 unless my $reader = $$self{'reader'}
98 22 0 if $pos
101 0 22 unless defined $chld
106 0 22 if ($$self{'remaining_len'} < 0)
126 0 9 unless defined wantarray
127 0 9 unless $$self{'type'} eq 'sub'
130 1 8 if wantarray
131 8 0 if defined wantarray
137 4 5 unless $$self{'type'} eq 'sub'
139 0 5 if (@{$$self{'value'};} and $recurse)
148 5 16 if $recurse