line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Cikl::DataTypes::TestClass; |
2
|
4
|
|
|
4
|
|
14467
|
use base qw(Test::Class); |
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
34449
|
|
3
|
4
|
|
|
4
|
|
458221
|
use strict; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
253
|
|
4
|
4
|
|
|
4
|
|
27
|
use warnings; |
|
4
|
|
|
|
|
15
|
|
|
4
|
|
|
|
|
132
|
|
5
|
4
|
|
|
4
|
|
10284
|
use Test::More; |
|
4
|
|
|
|
|
44669
|
|
|
4
|
|
|
|
|
50
|
|
6
|
4
|
|
|
4
|
|
8319
|
use Mouse::Util::TypeConstraints; |
|
4
|
|
|
|
|
168369
|
|
|
4
|
|
|
|
|
31
|
|
7
|
|
|
|
|
|
|
|
8
|
0
|
|
|
0
|
0
|
0
|
sub testing_class { die("testing_class not implemented!") } |
9
|
|
|
|
|
|
|
sub get_constraint { |
10
|
17
|
|
|
17
|
0
|
11924
|
my $self = shift; |
11
|
17
|
|
|
|
|
77
|
find_type_constraint($self->testing_class()); |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub check_type : Test { |
15
|
4
|
|
|
4
|
0
|
3907
|
my $self = shift; |
16
|
4
|
|
|
|
|
25
|
isa_ok($self->get_constraint(), 'Mouse::Meta::TypeConstraint'); |
17
|
4
|
|
|
4
|
|
833
|
} |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
39
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub check_name : Test { |
20
|
4
|
|
|
4
|
0
|
11407
|
my $self = shift; |
21
|
|
|
|
|
|
|
|
22
|
4
|
|
|
|
|
40
|
is($self->get_constraint()->name, $self->testing_class(), |
23
|
|
|
|
|
|
|
"The typeconstraint should be named " . $self->testing_class()); |
24
|
4
|
|
|
4
|
|
1524
|
} |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
16
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# Make sure we don't run this test helper directly. |
27
|
|
|
|
|
|
|
Cikl::DataTypes::TestClass->SKIP_CLASS(1); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |