Branch Coverage

blib/lib/String/Expando.pm
Criterion Covered Total %
branch 30 84 35.7


line true false branch
18 0 2 if (defined $self->{'expando'}) { }
21 0 0 defined $2 ? :
0 0 $_ =~ /$rx/cg ? :
26 13 28 / \G \% ([^%()]*) \( ([^\s()]+) \) /cgx ? :
31 0 2 if (defined $self->{'literal'}) { }
34 0 0 $_ =~ /$rx/cg ? :
39 28 0 / \G (.) /cgx ? :
42 0 2 if (defined $self->{'escaped_literal'}) { }
45 0 0 $_ =~ /$rx/cg ? :
50 0 0 / \G \\ (.) /cgx ? :
53 1 1 if (defined $self->{'dot_separator'}) { }
56 1 0 if (ref $dot eq '') { }
0 0 elsif (ref $dot eq 'Regexp') { }
72 0 17 unless defined $val
87 0 0 @_ > 1 ? :
88 0 0 @_ > 1 ? :
89 0 4 @_ > 1 ? :
104 13 28 if (my($code, $fmt) = &$mat()) { }
0 28 elsif (not defined($res = &$lit) || defined($res = &$esc)) { }
107 0 13 if defined $fmt and length $fmt
121 0 21 if $sr eq ''
125 0 21 unless eval { do { $val = $stash->{$code}; 1 } } or eval { do { $val = $stash->[$code]; 1 } }
132 1 20 if ref $val eq 'CODE'
133 3 18 unless defined $val
143 0 0 if $rval eq 'HASH'
156 0 0 if (defined $f) { }
0 0 elsif ($rval eq 'HASH') { }
0 0 elsif ($rval eq 'ARRAY') { }
157 0 0 unless $func->{$f}
161 0 0 if defined $l or defined $r
165 0 0 if defined $k
166 0 0 defined $r ? :
173 0 0 if length $code
174 0 0 if $rval eq 'ARRAY'
175 0 0 if $rval eq 'HASH'
183 0 16 unless defined $val
185 12 4 if $r eq ''
187 0 4 unless $self
189 0 4 if $r eq 'ARRAY'
190 0 4 if $r eq 'CODE'
191 4 0 if ($r eq 'HASH')
193 3 6 if defined $val->{$_}