Branch Coverage

blib/lib/Catmandu/Emit.pm
Criterion Covered Total %
branch 15 28 53.5


line true false branch
49 0 1100 unless _eval_emit($self->_emit_sub(@args))
56 1100 0 if (my $args = $opts{'args'})
72 0 2592 if is_array_ref($var)
73 0 2592 if is_array_ref($val)
74 2592 0 if (defined $val)
132 167 559 if (my $up_var = $opts{'up_var'})
133 155 12 if (defined(my $key = $opts{'key'})) { }
12 0 elsif (defined(my $index = $opts{'index'})) { }
149 2 167 if (not defined $up_var) { }
155 12 elsif (defined(my $key = $opts{'key'})) { }
12 0 elsif (defined(my $idx = $opts{'index'})) { }
169 0 0 unless defined $val
174 0 0 if (is_integer($val))
177 0 0 if (is_float($val) and not $val =~ /0$/)