Parametry.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond 50.0% 2 / 4 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 86.2% 25 / 29 CC 3 SCAR 5.8
CC
3
Cov
90%
register
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« Parametry/ParamerHelpers.pm ↑ Summary Parametry/Paramer.pm »
1 package Mojolicious::Plugin::Parametry;
2  
3 2 ▶use Mojo::Base 'Mojolicious::Plugin';
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 2 ▶use Mojolicious::Plugin::Parametry::Paramer;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Mojolicious::Plugin::Parametry::ParamerHelpers;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8  
9 2 our $VERSION = '1.001002'; # VERSION
10  
11 1 ▶sub register {
Subroutine register: called CC=3 SCAR=11.3
Pod documented
12 1 my ($self, $app, $conf) = @_;
13  
14 $app->helper(
15 2 ▶ ($conf->{shortcut_key} // 'P') => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
16 2 Mojolicious::Plugin::Parametry::Paramer
17 ->__THIS_ISNT_THE_PARAM_YOU_SHOULD_BE_LOOKING_FOR_BLARGGRGTRKASDFHJKTRDHSYTSD(shift)
18 1 ▶ });
Condition50%1/2
$conf->{"shortcut_key"} // "P"
l!l
01
MC/DC0%0/1
$conf->{"shortcut_key"} // "P"
$conf->{"shortcut_key"}
Truth table50%1/2
A
A= $conf->{"shortcut_key"}
Aresult
11
00
19 $app->helper(
20 16 ▶ ($conf->{helpers_key} // 'PP') => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
21 16 Mojolicious::Plugin::Parametry::ParamerHelpers->new(shift)
22 1 ▶ });
Condition50%1/2
$conf->{"helpers_key"} // "PP"
l!l
01
MC/DC0%0/1
$conf->{"helpers_key"} // "PP"
$conf->{"helpers_key"}
Truth table50%1/2
A
A= $conf->{"helpers_key"}
Aresult
11
00
23 }
24  
25 2 1;
26  
27 __END__
« Parametry/ParamerHelpers.pm ↑ Summary Parametry/Paramer.pm »