Condition Coverage

blib/lib/HarfBuzz/Shaper.pm
Criterion Covered Total %
condition 13 32 40.6


and 3 conditions

line !l l&&!r l&&r condition
212 0 0 4 @_ > 1 and defined $text[0]
238 0 0 2 @_ and defined $_[0]

or 2 conditions

line l !l condition
90 0 4 $opts //= {}
416 7 0 $self->{'features'} || []
523 0 1 $self->{'direction'} // "ltr"
525 2 0 $self->{'size'} || 1

or 3 conditions

line l !l&&r !l&&!r condition
150 4 0 0 defined $fontfile or defined $size
158 0 4 0 $$self{"face_$fontfile"} //= &hb_face_create($blob, 0)
159 0 4 0 $$self{"font_$fontfile"} //= do { my $font = &hb_font_create($face); &hb_ot_font_set_funcs($font); $font }
253 2 0 0 &hb_feature_from_string($feature) || croak(qq[Unknown shaper feature: "$feature"])
423 2 0 0 &hb_feature_from_string($feature) || croak(qq[Unknown shaper feature: "$feature"])
523 1 1 0 $dir //= $self->{'direction'} // "ltr"