testlib/Cikl/Models/Address/TestClass.pm

filter: Statementstmt 82.1% 23 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 77.7% 7 / 9 Podpod 0.0% 0 / 4 totaltotal 73.1% 30 / 41 CC 1 SCAR 2.0
CC
1
Cov
82%
testing_class
2.0
safe_generate
2.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Cikl/DataTypes/Integer.pm ↑ Summary blib/lib/Cikl/DataTypes/Email.pm »
1 package Cikl::Models::Address::TestClass;
2 6 ▶use base qw(Test::Class);
Subroutine BEGIN: called CC=1 SCAR=0.0
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use Test::More;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use Mouse::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub testing_class { die("testing_class not implemented!") }
Subroutine testing_class: not called CC=1 SCAR=6.9
Pod undocumented
9  
10 0 ▶sub safe_generate {
Subroutine safe_generate: not called CC=1 SCAR=6.9
Pod undocumented
11 0 my $self = shift;
12 0 my $value = shift;
13 0 return eval { $self->generate($value) };
14 }
15  
16 59 ▶sub generate {
Subroutine generate: called CC=1 SCAR=0.0
Pod undocumented
17 59 my $self = shift;
18 59 my $value = shift;
19 59 return $self->testing_class()->new(value => $value);
20 }
21  
22 18 ▶sub generate_normalized {
Subroutine generate_normalized: called CC=1 SCAR=0.0
Pod undocumented
23 18 my $self = shift;
24 18 my $value = shift;
25 18 return $self->testing_class()->new_normalized(value => $value);
26 }
27  
28 # Make sure we don't run this test helper directly.
29 6 __PACKAGE__->SKIP_CLASS(1);
30  
31 6 1;
32  
« blib/lib/Cikl/DataTypes/Integer.pm ↑ Summary blib/lib/Cikl/DataTypes/Email.pm »