Branch Coverage

blib/lib/Mojolicious/Plugin/Memorize.pm
Criterion Covered Total %
branch 18 20 90.0


line true false branch
17 3 15 unless @_
35 0 15 unless ref(my $cb = pop()) eq 'CODE'
36 8 7 ref $_[0] eq 'HASH' ? :
40 0 32 unless $_
43 7 8 if $self->_check_cached($name)
47 2 6 if (my $delta = $$args{'duration'}) { }
2 4 elsif (my $time = $$args{'expires'}) { }
63 6 9 unless exists $$mem{$name}
65 3 6 unless my $expires = $$mem{$name}{'expires'}
67 4 2 unless &Mojo::Util::steady_time() >= $expires