line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Auto::Types; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
43
|
use strict; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
187
|
|
4
|
6
|
|
|
6
|
|
31
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
204
|
|
5
|
|
|
|
|
|
|
|
6
|
6
|
|
|
6
|
|
2940
|
use Type::Library -base; |
|
6
|
|
|
|
|
197985
|
|
|
6
|
|
|
|
|
67
|
|
7
|
6
|
|
|
6
|
|
5027
|
use Type::Utils -all; |
|
6
|
|
|
|
|
31937
|
|
|
6
|
|
|
|
|
195
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
BEGIN { |
10
|
6
|
|
|
6
|
|
20448
|
extends 'Types::Standard'; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
our $VERSION = '0.12'; # VERSION |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
declare 'Data', |
16
|
|
|
|
|
|
|
as InstanceOf['Test::Auto::Data']; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
declare 'Document', |
19
|
|
|
|
|
|
|
as InstanceOf['Test::Auto::Document']; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
declare 'Parser', |
22
|
|
|
|
|
|
|
as InstanceOf['Test::Auto::Parser']; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
declare 'Plugin', |
25
|
|
|
|
|
|
|
as InstanceOf['Test::Auto::Plugin']; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
declare 'Source', |
28
|
|
|
|
|
|
|
as InstanceOf['Test::Auto']; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
declare 'Strings', |
31
|
|
|
|
|
|
|
as ArrayRef[Str]; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
declare 'Subtests', |
34
|
|
|
|
|
|
|
as InstanceOf['Test::Auto::Subtests']; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=encoding utf8 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Test::Auto::Types |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=cut |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 ABSTRACT |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Test-Auto Type Constraints |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 SYNOPSIS |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
package main; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
use Test::Auto::Types; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
1; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 DESCRIPTION |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This package provides type constraints for L<Test::Auto>. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=cut |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 INHERITS |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This package inherits behaviors from: |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
L<Types::Standard> |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=cut |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 CONSTRAINTS |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This package declares the following type constraints: |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 parser |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Parser |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
This type is defined in the L<Test::Auto::Types> library. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=over 4 |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=item parser parent |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Object |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=back |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=over 4 |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=item parser composition |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
InstanceOf['Test::Auto::Parser'] |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=back |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=over 4 |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=item parser example #1 |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
require Test::Auto; |
109
|
|
|
|
|
|
|
require Test::Auto::Parser; |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
my $test = Test::Auto->new('t/Test_Auto.t'); |
112
|
|
|
|
|
|
|
my $parser = Test::Auto::Parser->new(source => $test); |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=back |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=cut |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head2 source |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Source |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
This type is defined in the L<Test::Auto::Types> library. |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=over 4 |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=item source parent |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
Object |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=back |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=over 4 |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=item source composition |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
InstanceOf['Test::Auto'] |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=back |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=over 4 |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=item source example #1 |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
require Test::Auto; |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
my $test = Test::Auto->new('t/Test_Auto.t'); |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=back |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=cut |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=head2 strings |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
Strings |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
This type is defined in the L<Test::Auto::Types> library. |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=over 4 |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
=item strings composition |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
ArrayRef[Str] |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=back |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=over 4 |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=item strings example #1 |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
['abc', 123] |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=back |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=cut |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
=head2 subtests |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
Subtests |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
This type is defined in the L<Test::Auto::Types> library. |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
=over 4 |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
=item subtests parent |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
Object |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=back |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=over 4 |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=item subtests composition |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
InstanceOf['Test::Auto::Subtests'] |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
=back |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
=over 4 |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
=item subtests example #1 |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
require Test::Auto; |
203
|
|
|
|
|
|
|
require Test::Auto::Parser; |
204
|
|
|
|
|
|
|
require Test::Auto::Subtests; |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
my $test = Test::Auto->new('t/Test_Auto.t'); |
207
|
|
|
|
|
|
|
my $parser = Test::Auto::Parser->new(source => $test); |
208
|
|
|
|
|
|
|
my $subs = Test::Auto::Subtests->new(parser => $parser); |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
=back |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
=cut |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
=head1 AUTHOR |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
Al Newkirk, C<awncorp@cpan.org> |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
=head1 LICENSE |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
Copyright (C) 2011-2019, Al Newkirk, et al. |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under the terms |
223
|
|
|
|
|
|
|
of the The Apache License, Version 2.0, as elucidated in the |
224
|
|
|
|
|
|
|
L<"license file"|https://github.com/iamalnewkirk/test-auto/blob/master/LICENSE>. |
225
|
|
|
|
|
|
|
|
226
|
|
|
|
|
|
|
=head1 PROJECT |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
L<Wiki|https://github.com/iamalnewkirk/test-auto/wiki> |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
L<Project|https://github.com/iamalnewkirk/test-auto> |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
L<Initiatives|https://github.com/iamalnewkirk/test-auto/projects> |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
L<Milestones|https://github.com/iamalnewkirk/test-auto/milestones> |
235
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
L<Issues|https://github.com/iamalnewkirk/test-auto/issues> |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
=cut |