Branch Coverage

blib/lib/Text/Amuse/Compile/Fonts/Selected.pm
Criterion Covered Total %
branch 31 38 81.5


line true false branch
123 244 9 unless ($args{'is_slide'})
131 3 250 unless $args{'others'}
133 7 246 $args{'bidi'} ? :
135 236 17 if (Text::Amuse::Utils::has_babel_ldf($main_lang)) { }
137 3 233 unless $args{'others'}
5 231 if (grep {not Text::Amuse::Utils::has_babel_ldf($_);} @{[] unless $args{'others'};}) { }
155 276 552 $slot eq 'main' ? :
156 759 69 if ($lang eq $main_lang) { }
178 3 250 if ($cjk{$main_lang})
194 0 253 if (my $custom = $args{'captions'})
195 0 0 if (my $base = delete $custom->{'_base_'})
201 2 251 if ($args{'has_ruby'})
223 1 2 $slot eq 'main' ? :
227 3 0 if ($font->has_files)
234 3 0 if ($font->regular->dirname =~ m[\A([A-Za-z0-9\./_-]+)\z]) { }
263 0 6 unless my $def = $self->definitions->{$slot}
268 28 2 if (my $v = $def->{'attr'}{$att})
283 15 822 if (my(@language_specific) = $self->all_fonts->fonts_for_language($slot, $lang))
285 15 0 unless ($font->for_babel_language($lang))