Qgoda/Artefact.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 3 totaltotal 65.0% 13 / 20 CC 1 SCAR 3.4
CC
1
Cov
83%
getPath
2.0
getAsset
2.0
BEGIN
1.0
CRAP 1.4
« Qgoda/HTMLFilter/Generator.pm ↑ Summary Qgoda/HTMLFilter/CleanUp.pm »
1 #! /bin/false
2  
3 # Copyright (C) 2016-2018 Guido Flohr <guido.flohr@cantanea.com>,
4 # all rights reserved.
5  
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10  
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15  
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18  
19 package Qgoda::Artefact;
20 6 $Qgoda::Artefact::VERSION = 'v0.9.2';
21 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 6 ▶use Locale::TextDomain qw('qgoda');
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 sub new {
26 3 ▶ my ($class, $path, $asset) = @_;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
27  
28 3 bless {
29 path => $path,
30 asset => $asset,
31 }, $class;
32 }
33  
34 sub getPath {
35 0 ▶ shift->{path};
Subroutine getPath: not called CC=1 SCAR=6.9
Pod undocumented
36 }
37  
38 sub getAsset {
39 0 ▶ shift->{asset};
Subroutine getAsset: not called CC=1 SCAR=6.9
Pod undocumented
40 }
41  
42 6 1;
« Qgoda/HTMLFilter/Generator.pm ↑ Summary Qgoda/HTMLFilter/CleanUp.pm »