Branch Coverage

blib/lib/Mojo/Shortcut.pm
Criterion Covered Total %
branch 25 30 83.3


line true false branch
15 0 14 unless @_ >= 1
16 12 2 if (@args % 2)
23 0 3 unless @_ >= 1
25 1 2 unless ($cb = $self->cb)
34 0 8 unless @_ >= 1
35 1 7 unless my $action = $self->action
36 2 5 unless my $class = $self->class
40 0 18 unless @_ <= 1
0 18 unless @_ >= 1
42 2 16 unless ref $namespaces
46 2 24 if (my $e = 'Mojo::Loader'->load($cur))
47 1 1 ref $e ? :
51 12 12 if (@{$self->base_classes})
52 6 6 unless first sub { $cur->isa($_); } , @{$self->base_classes}
56 6 12 if $self->action and not $cur->can($self->action)