Knit/Plugin/Version.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 33 / 33 CC 2 SCAR 2.2
CC
2
Cov
100%
munge
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Knit/Plugin/Legal.pm ↑ Summary Knit/Plugin/Abstract.pm »
1 package Pod::Knit::Plugin::Version;
2 3 our $AUTHORITY = 'cpan:YANICK';
3 3 $Pod::Knit::Plugin::Version::VERSION = '0.0.1';
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 extends 'Pod::Knit::Plugin';
10 3 with 'Pod::Knit::DOM::WebQuery';
11  
12 3 ▶use experimental 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 has "version" => (
15 is => 'ro',
16 lazy => 1,
17 3 ▶ default => sub ($self) {
Subroutine __ANON__: called CC=1 SCAR=0.0
18 3 $self->stash->{version};
19 },
20 3 );
21  
22 4 ▶sub munge ($self,$doc) {
Subroutine munge: called CC=2 SCAR=6.9
23 3 ▶ no warnings 'uninitialized';
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 4 ▶ $doc->find_or_create_section( 'VERSION', 1, undef,
Condition100%2/2
$self->version // "UNSPECIFIED"
l!l
22
MC/DC100%1/1
$self->version // "UNSPECIFIED"
$self->version
Truth table100%2/2
A
A= $self->version
Aresult
11
00
26 'para' => 'version ' . ( $self->version // 'UNSPECIFIED' )
27 );
28  
29 }
30  
31 3 1;
32  
33 __END__
« Knit/Plugin/Legal.pm ↑ Summary Knit/Plugin/Abstract.pm »