| blib/lib/Mojolicious/Plugin/Memorize.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| branch | 18 | 20 | 90.0 | 
| line | true | false | branch | 
|---|---|---|---|
| 18 | 3 | 15 | unless @_ | 
| 36 | 0 | 15 | unless ref(my $cb = pop()) eq 'CODE' | 
| 37 | 8 | 7 | ref $_[0] eq 'HASH' ? : | 
| 41 | 0 | 32 | unless $_ | 
| 44 | 7 | 8 | if $self->_check_cached($name) | 
| 48 | 2 | 6 | if (my $delta = $$args{'duration'}) { } | 
| 2 | 4 | elsif (my $time = $$args{'expires'}) { } | |
| 64 | 6 | 9 | unless exists $$mem{$name} | 
| 66 | 3 | 6 | unless my $expires = $$mem{$name}{'expires'} | 
| 68 | 4 | 2 | unless &Mojo::Util::steady_time() >= $expires |