Branch Coverage

blib/lib/Text/Amuse/Compile/Fonts/Selected.pm
Criterion Covered Total %
branch 33 40 82.5


line true false branch
131 248 9 unless ($args{'is_slide'})
139 3 254 unless $args{'others'}
142 252 5 unless ($self->luatex)
143 2 250 $args{'main_is_rtl'} ? :
145 11 246 $args{'bidi'} ? :
147 238 19 if (Text::Amuse::Utils::has_babel_ldf($main_lang)) { }
149 3 235 unless $args{'others'}
8 230 if (grep {not Text::Amuse::Utils::has_babel_ldf($_);} @{[] unless $args{'others'};}) { }
167 286 572 $slot eq 'main' ? :
168 771 87 if ($lang eq $main_lang) { }
184 0 257 if (my $custom = $args{'captions'})
185 0 0 if (my $base = delete $custom->{'_base_'})
191 2 255 if ($args{'has_ruby'})
213 1 2 $slot eq 'main' ? :
217 3 0 if ($font->has_files)
224 3 0 if ($font->regular->dirname =~ m[\A([A-Za-z0-9\./_-]+)\z]) { }
253 0 6 unless my $def = $self->definitions->{$slot}
258 28 2 if (my $v = $def->{'attr'}{$att})
273 9 849 if (my(@language_specific) = $self->all_fonts->fonts_for_language($slot, $lang))
275 9 0 unless ($font->for_babel_language($lang))