Branch Coverage

blib/lib/SWF/Builder/Character/Text.pm
Criterion Covered Total %
branch 20 38 52.6


line true false branch
46 0 1 if defined $font
47 0 1 if defined $text
56 1 3 if (not @$records or $$records[-1]->GlyphEntries->defined) { }
67 0 1 if $font eq $$self{'_current_font'}
68 0 1 unless UNIVERSAL::isa($font, 'SWF::Builder::Character::Font')
69 0 1 unless $font->embed
78 1 0 if $$self{'_max_ascent'} < $as
79 1 0 if $$self{'_max_descent'} < $des
91 1 0 if $$self{'_max_ascent'} < $as
92 1 0 if $$self{'_max_descent'} < $des
99 0 0 if (defined $kern) { }
109 0 0 if (defined $leading) { }
129 1 1 unless defined $$nlbbox[0]
178 1 0 if (@chars)
185 3 1 $$self{'_kerning'} && defined $c ? :
189 4 0 if (defined $$b[0]) { }
201 0 1 if ($ctrl and my $n = $ctrl =~ tr/\n//)
222 1 0 if $$self{'_nl'}
228 1 0 if ($$self{'_is_alpha'}) { }