testlib/Cikl/DataTypes/TestClass.pm

filter: Statementstmt 96.6% 29 / 30 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 90.9% 10 / 11 Podpod 0.0% 0 / 4 totaltotal 86.6% 39 / 45 CC 1 SCAR 0.9
CC
1
Cov
97%
testing_class
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« blib/lib/Cikl/DataTypes/Fqdn.pm ↑ Summary blib/lib/Cikl/DataTypes/LowerCaseStr.pm »
1 package Cikl::DataTypes::TestClass;
2 4 ▶use base qw(Test::Class);
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use Test::More;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 4 ▶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 17 ▶sub get_constraint {
Subroutine get_constraint: called CC=1 SCAR=0.0
Pod undocumented
10 17 my $self = shift;
11 17 find_type_constraint($self->testing_class());
12 }
13  
14 4 ▶sub check_type : Test {
Subroutine check_type: called CC=1 SCAR=0.0
Pod undocumented
15 4 my $self = shift;
16 4 isa_ok($self->get_constraint(), 'Mouse::Meta::TypeConstraint');
17 4 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 4 ▶sub check_name : Test {
Subroutine check_name: called CC=1 SCAR=0.0
Pod undocumented
20 4 my $self = shift;
21  
22 4 is($self->get_constraint()->name, $self->testing_class(),
23 "The typeconstraint should be named " . $self->testing_class());
24 4 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
25  
26 # Make sure we don't run this test helper directly.
27 4 Cikl::DataTypes::TestClass->SKIP_CLASS(1);
28  
29 4 1;
« blib/lib/Cikl/DataTypes/Fqdn.pm ↑ Summary blib/lib/Cikl/DataTypes/LowerCaseStr.pm »