line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Mocha::Types; |
2
|
|
|
|
|
|
|
# ABSTRACT: Internal type constraints |
3
|
|
|
|
|
|
|
$Test::Mocha::Types::VERSION = '0.67'; |
4
|
|
|
|
|
|
|
use Type::Library |
5
|
13
|
|
|
|
|
150
|
-base, |
6
|
|
|
|
|
|
|
-declare => qw( |
7
|
|
|
|
|
|
|
Matcher |
8
|
|
|
|
|
|
|
NumRange |
9
|
|
|
|
|
|
|
Slurpy |
10
|
13
|
|
|
13
|
|
3961
|
); |
|
13
|
|
|
|
|
198066
|
|
11
|
|
|
|
|
|
|
|
12
|
13
|
|
|
13
|
|
16002
|
use Type::Utils -all; |
|
13
|
|
|
|
|
55838
|
|
|
13
|
|
|
|
|
134
|
|
13
|
13
|
|
|
13
|
|
50734
|
use Types::Standard 0.008 qw( Dict InstanceOf Num Tuple ); |
|
13
|
|
|
|
|
457141
|
|
|
13
|
|
|
|
|
132
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
union Matcher, |
16
|
|
|
|
|
|
|
[ |
17
|
|
|
|
|
|
|
class_type( { class => 'Type::Tiny' } ), |
18
|
|
|
|
|
|
|
class_type( { class => 'Moose::Meta::TypeConstraint' } ), |
19
|
|
|
|
|
|
|
]; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
declare NumRange, as Tuple [ Num, Num ], where { $_->[0] < $_->[1] }; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# this hash structure is created by Types::Standard::slurpy() |
24
|
|
|
|
|
|
|
declare Slurpy, as Dict [ slurpy => InstanceOf ['Type::Tiny'] ]; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |