Branch Coverage

blib/lib/Devel/MojoProf.pm
Criterion Covered Total %
branch 32 46 69.5


line true false branch
18 0 8 ref $_[-1] eq 'HASH' ? :
20 6 2 if @_ == 1
22 0 2 unless my $target = $self->_ensure_loaded(shift())
24 0 2 if $self->{'installed'}{$target}{$method}++
25 2 0 ref $_[0] ? :
33 5 0 @_ ? :
46 4 7 unless @_
47 6 1 &blessed($_[0]) ? :
66 2 11 ref $args[-1] eq 'CODE' ? :
68 2 11 if $cb
71 0 13 $wantarray ? :
73 2 11 if ($cb) { }
0 11 elsif (&blessed($res[0]) and $res[0]->isa('Mojo::Promise')) { }
83 0 13 $wantarray ? :
92 53 13 if $caller[0] eq 'Devel::MojoProf' or $caller[0] =~ /$params->{'ignore_caller'}/
100 0 1 if $self->_ensure_loaded('Mojo::Pg', 1)
106 0 1 if $self->_ensure_loaded('Mojo::mysql', 1)
112 0 1 if $self->_ensure_loaded('Mojo::Redis', 1)
118 0 1 if $self->_ensure_loaded('Mojo::SQLite', 1)
128 2 5 unless my $e = load_class($target)
129 0 5 if ref $e
130 0 5 unless $no_warn
134 3 5 ref $_[0] ? :