line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Types::Equal; |
2
|
2
|
|
|
2
|
|
141912
|
use 5.008001; |
|
2
|
|
|
|
|
14
|
|
3
|
2
|
|
|
2
|
|
9
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
38
|
|
4
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
111
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "0.02"; |
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
1073
|
use Type::Library -base, -declare => qw( Eq Equ NumEq NumEqu ); |
|
2
|
|
|
|
|
53095
|
|
|
2
|
|
|
|
|
24
|
|
9
|
2
|
|
|
2
|
|
4174
|
use Type::Tiny::Eq; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
60
|
|
10
|
2
|
|
|
2
|
|
840
|
use Type::Tiny::Equ; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
59
|
|
11
|
2
|
|
|
2
|
|
762
|
use Type::Tiny::NumEq; |
|
2
|
|
|
|
|
20
|
|
|
2
|
|
|
|
|
61
|
|
12
|
2
|
|
|
2
|
|
840
|
use Type::Tiny::NumEqu; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
361
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my $meta = __PACKAGE__->meta; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
$meta->add_type( |
17
|
|
|
|
|
|
|
{ |
18
|
|
|
|
|
|
|
name => 'Eq', |
19
|
|
|
|
|
|
|
constraint_generator => sub { |
20
|
|
|
|
|
|
|
Type::Tiny::Eq->new( |
21
|
|
|
|
|
|
|
value => $_[0], |
22
|
|
|
|
|
|
|
) |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
$meta->add_type( |
28
|
|
|
|
|
|
|
{ |
29
|
|
|
|
|
|
|
name => 'Equ', |
30
|
|
|
|
|
|
|
constraint_generator => sub { |
31
|
|
|
|
|
|
|
Type::Tiny::Equ->new( |
32
|
|
|
|
|
|
|
value => $_[0], |
33
|
|
|
|
|
|
|
) |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
$meta->add_type( |
39
|
|
|
|
|
|
|
{ |
40
|
|
|
|
|
|
|
name => 'NumEq', |
41
|
|
|
|
|
|
|
constraint_generator => sub { |
42
|
|
|
|
|
|
|
Type::Tiny::NumEq->new( |
43
|
|
|
|
|
|
|
value => $_[0], |
44
|
|
|
|
|
|
|
) |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
$meta->add_type( |
50
|
|
|
|
|
|
|
{ |
51
|
|
|
|
|
|
|
name => 'NumEqu', |
52
|
|
|
|
|
|
|
constraint_generator => sub { |
53
|
|
|
|
|
|
|
Type::Tiny::NumEqu->new( |
54
|
|
|
|
|
|
|
value => $_[0], |
55
|
|
|
|
|
|
|
) |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
); |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |
61
|
|
|
|
|
|
|
__END__ |