Branch Coverage

blib/lib/WebDAO/Engine.pm
Criterion Covered Total %
branch 6 86 6.9


line true false branch
28 1 0 ($stat = $self->_init(@_)) ? :
71 0 1 if (ref(my $classes = $opt{'register'}))
74 0 1 if (my $lexer = $opt{'lexer'}) { }
0 1 elsif (my $lex = $opt{'lex'}) { }
80 0 0 unless $lex->value($self)
104 0 0 if (UNIVERSAL::isa($_, 'WebDAO::Element')) { }
0 0 elsif (ref $_ eq 'CODE') { }
0 0 elsif (UNIVERSAL::isa($_, 'WebDAO::Response')) { }
105 0 0 if UNIVERSAL::can($_, 'pre_fetch')
109 0 0 if UNIVERSAL::can($_, 'post_fetch')
118 0 0 unless $_->_is_file_send
137 0 0 if (my $res = $inject_fetch->{$path}) { }
152 0 0 if (UNIVERSAL::isa($root, 'WebDAO::Container')) { }
156 0 0 unless UNIVERSAL::isa($_, 'WebDAO::Modal')
203 0 0 unless (defined $res)
212 0 0 if (not ref $res or ref $res eq 'SCALAR')
213 0 0 ref $res ? :
216 0 0 if (ref $res eq 'HASH' and $response->wantformat('json'))
220 0 0 if (UNIVERSAL::isa($res, 'WebDAO::Response'))
222 0 0 if $res->is_empty
223 0 0 if ($res->_is_modal)
226 0 0 unless $res->_is_file_send
237 0 0 if (UNIVERSAL::isa($src, 'WebDAO::Modal'))
245 0 0 if (not ref $res or ref $res eq 'SCALAR') { }
0 0 elsif ($res == $src) { }
255 0 0 if (UNIVERSAL::isa($res, 'WebDAO::Element'))
262 0 0 if ($need_inject_result)
273 0 0 if ($ev->{'event'} eq 'start') { }
0 0 elsif ($ev->{'event'} eq 'inject') { }
0 0 elsif ($ev->{'event'} eq 'fetch') { }
0 0 elsif ($ev->{'event'} eq 'end') { }
274 0 0 if UNIVERSAL::can($obj, 'pre_fetch')
285 0 0 if UNIVERSAL::can($obj, 'fetch')
291 0 0 if UNIVERSAL::can($obj, 'post_fetch')
305 0 0 if ref $ref_sub
316 0 0 unless (exists $ev_hash->{$event_name})
340 0 0 $pack->isa('WebDAO::Element') ? :
346 0 0 if ($pack->isa('WebDAO::Element'))
351 0 0 if $@
366 0 0 if exists $ref->{$name}
379 0 2 unless (exists $main->{$module})
382 0 0 if ($@)
391 2 0 if defined $alias