Branch Coverage

blib/lib/SWF/Builder/Character.pm
Criterion Covered Total %
branch 20 60 33.3


line true false branch
25 0 0 if (defined $name) { }
27 0 0 if defined $$self{'_export_name'}
33 0 0 if (not defined $$self{'_export_name'}) { }
34 0 0 if ($$self{'_root'}{'_auto_namer'}) { }
55 0 4 if $$self{'ID'}->defined
57 3 0 unless $$dep{'ID'}->defined
60 4 0 if ($$self{'_root'}) { }
63 0 0 unless $$self{'ID'}->defined
68 0 4 if (defined $$self{'_export_name'})
103 1 0 if $p eq $parent
112 0 3 unless my $parent = $param{'MovieClip'} || $param{'MC'} || $param{'clip_with'} || $$self{'_parent'}
113 0 3 if ($parent eq '_root') { }
0 3 elsif (ref $parent eq 'SWF::Builder') { }
118 0 3 if $$parent{'_root'} != $$self{'_root'}
140 1 2 if (exists $param{'below'}) { }
0 2 elsif (exists $param{'above'}) { }
141 0 1 unless my $refitem = _search_sibling($parent, $param{'below'})
144 0 0 unless my $refitem = _search_sibling($parent, $param{'above'})
198 0 0 unless UNIVERSAL::can($class, '_init_character')
226 3 3 if (not defined $$self{'_tags'}[$frame_offset]) { }
227 0 3 if $frame_offset < 0 or $frame_offset >= $$self{'_last_frame_offset'}
237 3 0 if ($frame_offset == 0) { }
252 0 0 if (defined $name) { }
254 0 0 if $tag->Name->defined
259 0 0 if (not $tag->Name->defined) { }
260 0 0 if ($$self{'_root'}{'_auto_namer'}) { }
281 0 3 if $sub =~ /::DESTROY$/
283 0 3 unless 'SWF::Builder::DisplayInstance::Frame'->can($sub)
338 0 0 if $$parent{'_last_frame_offset'} < 1.8446744073709552e+19
367 3 0 unless ($tag->Matrix->defined)