Branch Coverage

blib/lib/SWF/Builder/Character/Font.pm
Criterion Covered Total %
branch 13 30 43.3


line true false branch
50 0 1 if (exists $SWF::Builder::Character::Font::indirect{$fontfile})
58 1 0 if ($@)
59 1 0 if ($@ =~ /Can\'t locate object method/) { }
61 0 1 unless eval { do { require SWF::Builder::Character::Font::FreeType } } or eval { do { require SWF::Builder::Character::Font::TTF } }
74 0 1 if (defined $embed)
91 0 4 if (exists $$self{'_glyph_hash'}{$char} and defined $$self{'_glyph_hash'}{$char}[1]) { }
104 0 1 unless $$self{'_embed'}
108 0 1 if (defined $e_char) { }
115 0 4 if $$hash{$c}
126 0 0 if (not defined $code) { }
0 0 elsif (not $code =~ /\d+/) { }
139 0 1 if $sub eq 'DESTROY'
142 0 1 if ($tag->can($sub)) { }
0 1 elsif ($tag->can(my $fsub = "FontFlags$sub")) { }
163 4 0 defined $$hash{$c}[0] ? :