blib/lib/Mojolicious/Plugin/StaticAttachment.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 11 | 16 | 68.7 |
line | true | false | branch |
---|---|---|---|
24 | 0 | 2 | unless my $conf = $self->paths->{$path} || $self->paths->{decode('UTF-8', $path)} |
44 | 1 | 0 | ref $_[0] ? : |
53 | 0 | 3 | if $format |
57 | 1 | 2 | unless (ref $conf) |
58 | 1 | 0 | if $conf |
66 | 2 | 1 | if utf8::is_utf8($conf->{'filename'}) |
68 | 1 | 2 | if utf8::is_utf8($path) |
72 | 0 | 3 | if $content_type |