blib/lib/Mojolicious/Plugin/SpectreCss.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 10 | 10 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 3 | 3 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 14 | 14 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mojolicious::Plugin::SpectreCss; | ||||||
2 | 1 | 1 | 684 | use Mojo::Base 'Mojolicious::Plugin'; | |||
1 | 2 | ||||||
1 | 8 | ||||||
3 | |||||||
4 | 1 | 1 | 198 | use Mojo::File 'path'; | |||
1 | 11 | ||||||
1 | 173 | ||||||
5 | |||||||
6 | our $VERSION = '0.01'; | ||||||
7 | |||||||
8 | sub register { | ||||||
9 | 1 | 1 | 1 | 43 | my ($self, $app) = @_; | ||
10 | |||||||
11 | 1 | 5 | my $asset = path(__FILE__)->sibling('SpectreCss')->child('asset'); | ||||
12 | 1 | 140 | push @{$app->static->paths}, $asset->child('public')->to_string; | ||||
1 | 7 | ||||||
13 | } | ||||||
14 | |||||||
15 | 1; |