blib/lib/Mojolicious/Plugin/SpectreCss.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
register
1.0
CRAP 1.0
↑ Summary
1 package Mojolicious::Plugin::SpectreCss;
2 1 ▶use Mojo::Base 'Mojolicious::Plugin';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 1 ▶use Mojo::File 'path';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = '0.01';
7  
8 1 ▶sub register {
Subroutine register: called CC=1 SCAR=0.0
Pod documented
9 1 my ($self, $app) = @_;
10  
11 1 my $asset = path(__FILE__)->sibling('SpectreCss')->child('asset');
12 1 push @{$app->static->paths}, $asset->child('public')->to_string;
13 }
14  
15 1 1;
↑ Summary