Branch Coverage

blib/lib/Text/Amuse/Compile/Fonts/Import.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
104 0 0 unless $self->use_fclist
112 0 0 if ($line =~ /(.+?)\s*: \s*(.+?)(\,.+)?\s*: \s*style=( Book|Roman|Medium|Regular| Italic|Oblique|Slanted| Bold| Bold\s*Italic|Bold\s*Oblique|Bold\s*Slanted)(,.*?)?$/x)
122 0 0 unless $file =~ /\.(t|o)tf$/i
124 0 0 unless $all{$name}
125 0 0 if ($specs{$name}{'files'}{$style}) { }
134 0 0 if (@dupes)
146 0 0 unless $self->use_imagemagick
154 0 0 if ($line =~ /^\s*Font:/) { }
0 0 elsif ($line =~ /^\s*(\w+):\s+(.+)\s*$/) { }
155 0 0 if ($current{'family'} and $current{'glyphs'} and $current{'style'} and $current{'weight'})
159 0 0 if ($current{'style'} eq 'Normal') { }
0 0 elsif ($current{'style'} eq 'Italic') { }
160 0 0 if ($current{'weight'} == 700) { }
0 0 elsif ($current{'weight'} == 400 or $current{'weight'} == 500) { }
169 0 0 if ($current{'weight'} == 700) { }
0 0 elsif ($current{'weight'} == 400 or $current{'weight'} == 500) { }
177 0 0 if ($style and $all{$name})
178 0 0 if ($specs{$name}{'files'}{$style}) { }
191 0 0 if ($name eq "glyphs" and not $value =~ /\.(t|o)tf\z/i)
204 0 0 unless $specs
209 0 0 if (my $found = $specs->{$font})
220 0 0 if (grep {not $_;} values %styles)
228 0 0 if (my $langs = $all_default{$font}{'languages'})
249 0 0 if (my $file = $self->output) { }
250 0 0 unless open my $fh, ">", $file