line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Types::Equal; |
2
|
2
|
|
|
2
|
|
143946
|
use 5.008001; |
|
2
|
|
|
|
|
18
|
|
3
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
41
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
102
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "0.01"; |
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
1139
|
use Type::Library -base, -declare => qw( Eq Equ ); |
|
2
|
|
|
|
|
54047
|
|
|
2
|
|
|
|
|
19
|
|
9
|
2
|
|
|
2
|
|
3757
|
use Type::Tiny::Eq; |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
58
|
|
10
|
2
|
|
|
2
|
|
808
|
use Type::Tiny::Equ; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
233
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $meta = __PACKAGE__->meta; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
$meta->add_type( |
15
|
|
|
|
|
|
|
{ |
16
|
|
|
|
|
|
|
name => 'Eq', |
17
|
|
|
|
|
|
|
constraint_generator => sub { |
18
|
|
|
|
|
|
|
Type::Tiny::Eq->new( |
19
|
|
|
|
|
|
|
value => $_[0], |
20
|
|
|
|
|
|
|
) |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
$meta->add_type( |
26
|
|
|
|
|
|
|
{ |
27
|
|
|
|
|
|
|
name => 'Equ', |
28
|
|
|
|
|
|
|
constraint_generator => sub { |
29
|
|
|
|
|
|
|
Type::Tiny::Equ->new( |
30
|
|
|
|
|
|
|
value => $_[0], |
31
|
|
|
|
|
|
|
) |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
__END__ |