Condition Coverage

blib/lib/String/Expando.pm
Criterion Covered Total %
condition 9 29 31.0


and 3 conditions

line !l l&&!r l&&r condition
77 0 4 0 defined $fmt and length $fmt

or 2 conditions

line l !l condition
29 0 1 $self->{'consume_expando'} ||= sub { / \G \% ([^%()]*) \( ([^\s()]+) \) /cgx ? ($2, $1) : (); }
41 0 1 $self->{'consume_literal'} ||= sub { / \G (.) /cgx ? $1 : (); }
52 0 1 $self->{'consume_escaped_literal'} ||= sub { / \G \\ (.) /cgx ? $1 : (); }
53 0 1 $self->{'decoder'} ||= \&String::Expando::decode
54 0 1 $self->{'stash'} ||= {}
55 0 1 $self->{'functions'} ||= {}
103 0 0 $func ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
64 8 0 0 $stash ||= $self->{'stash'}
74 16 0 0 defined($res = &$lit) || defined($res = &$esc)
99 0 0 0 $stash || $self->stash
120 0 0 0 defined $l or defined $r