blib/lib/Tapper/Reports/Web/Util/Filter/Testplan.pm

filter: Statementstmt 50.0% 10 / 20 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 33.3% 1 / 3 totaltotal 40.6% 13 / 32 CC 3 SCAR 13.9
CC
3
Cov
42%
path
6.0
name
6.0
BUILD
2.0
CRAP 4.0
« blib/lib/Tapper/Reports/Web/Controller/Tapper/Testruns/Id.pm ↑ Summary blib/lib/Tapper/Reports/Web/Controller/Tapper/User.pm »
1 package Tapper::Reports::Web::Util::Filter::Testplan;
2 14 our $AUTHORITY = 'cpan:TAPPER';
3 14 $Tapper::Reports::Web::Util::Filter::Testplan::VERSION = '5.0.17';
4  
5  
6  
7  
8 14 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 14 ▶use Hash::Merge::Simple 'merge';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 14 extends 'Tapper::Reports::Web::Util::Filter';
12  
13 0 ▶sub BUILD{
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
14 0 my $self = shift;
15 0 my $args = shift;
16  
17 0 $self->dispatch(
18 merge($self->dispatch,
19 {path => \&path,
20 name => \&name,
21 })
22 );
23 }
24  
25  
26  
27 sub path
28 0 ▶{
Subroutine path: not called CC=2 SCAR=17.9
Pod undocumented
29 0 my ($self, $filter_condition, $path) = @_;
30  
31 0 $path =~ s|\.|/|g;
32 0 ▶ $filter_condition->{early}->{path} = $path ? $path : undef;
Branch: 1 branch
BranchTrueFalseTotal
$path ? : 0 0 0
33  
34 0 return $filter_condition;
35 }
36  
37  
38 sub name
39 0 ▶{
Subroutine name: not called CC=2 SCAR=17.9
Pod documented
40 0 my ($self, $filter_condition, $name) = @_;
41  
42  
43 0 ▶ $filter_condition->{early}->{name} = $name ? $name : undef;
Branch: 1 branch
BranchTrueFalseTotal
$name ? : 0 0 0
44  
45 0 return $filter_condition;
46 }
47  
48  
49  
50  
51 14 1;
52  
53 __END__
« blib/lib/Tapper/Reports/Web/Controller/Tapper/Testruns/Id.pm ↑ Summary blib/lib/Tapper/Reports/Web/Controller/Tapper/User.pm »