Debian Codegraph @

upstream/debian-unstable/man3/Test2::V0.3perl

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\" ========================================================================
56 .\"
57 .IX Title "Test2::V0 3perl"
58 .TH Test2::V0 3perl 2025-11-16 "perl v5.40.1" "Perl Programmers Reference Guide"
59 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
60 .\" way too many mistakes in technical documents.
61 .if n .ad l
62 .nh
63 .SH NAME
64 Test2::V0 \- 0Th edition of the Test2 recommended bundle.
65 .SH DESCRIPTION
66 .IX Header "DESCRIPTION"
67 This is the big-daddy bundle. This bundle includes nearly every tool, and
68 several plugins, that the Test2 author uses. This bundle is used
69 extensively to test Test2::Suite itself.
70 .SH "NAMING, USING, DEPENDING"
71 .IX Header "NAMING, USING, DEPENDING"
72 This bundle should not change in a \fIseverely\fR incompatible way. Some minor
73 breaking changes, specially bugfixes, may be allowed. If breaking changes are
74 needed then a new \f(CW\*(C`Test2::V#\*(C'\fR module should be released instead.
75 .PP
76 As new \f(CW\*(C`V#\*(C'\fR modules are released old ones \fImay\fR be moved to different cpan
77 distributions. You should always use a specific bundle version and list that
78 version in your distributions testing requirements. You should never simply
79 list Test2::Suite as your modules dep, instead list the specific bundle, or
80 tools and plugins you use directly in your metadata.
81 .SH SYNOPSIS
82 .IX Header "SYNOPSIS"
83 .Vb 1
84 \& use Test2::V0;
85 \&
86 \& ok(1, "pass");
87 \&
88 \& ...
89 \&
90 \& done_testing;
91 .Ve
92 .SH "RESOLVING CONFLICTS WITH MOOSE"
93 .IX Header "RESOLVING CONFLICTS WITH MOOSE"
94 .Vb 1
95 \& use Test2::V0 \*(Aq!meta\*(Aq;
96 .Ve
97 .PP
98 Moose and Test2::V0 both export very different \f(CWmeta()\fR
99 subs. Adding \f(CW\*(Aq!meta\*(Aq\fR to the import args will prevent the sub from being
100 imported. This bundle also exports the sub under the name \f(CWmeta_check()\fR so
101 you can use that spelling as an alternative.
102 .SS TAGS
103 .IX Subsection "TAGS"
104 .IP :DEFAULT 4
105 .IX Item ":DEFAULT"
106 The following are both identical:
107 .Sp
108 .Vb 1
109 \& use Test2::V0;
110 \&
111 \& use Test2::V0 \*(Aq:DEFAULT\*(Aq;
112 .Ve
113 .SS "RENAMING ON IMPORT"
114 .IX Subsection "RENAMING ON IMPORT"
115 .Vb 1
116 \& use Test2::V0 \*(Aq:DEFAULT\*(Aq, \*(Aq!ok\*(Aq, ok => {\-as => \*(Aqmy_ok\*(Aq};
117 .Ve
118 .PP
119 This bundle uses Test2::Util::Importer for exporting, as such you can use any arguments
120 it accepts.
121 .PP
122 Explanation:
123 .IP '!ok' 4
124 .IX Item "'!ok'"
125 Do not export \f(CWok()\fR
126 .IP "ok => {\-as => 'my_ok'}" 4
127 .IX Item "ok => {-as => 'my_ok'}"
128 Actually, go ahead and import \f(CWok()\fR but under the name \f(CWmy_ok()\fR.
129 .PP
130 If you did not add the \f(CW\*(Aq!ok\*(Aq\fR argument then you would have both \f(CWok()\fR and
131 \&\f(CWmy_ok()\fR
132 .SH PRAGMAS
133 .IX Header "PRAGMAS"
134 All of these can be disabled via individual import arguments, or by the
135 \&\f(CW\*(C`\-no_pragmas\*(C'\fR argument.
136 .PP
137 .Vb 1
138 \& use Test2::V0 \-no_pragmas => 1;
139 .Ve
140 .SS STRICT
141 .IX Subsection "STRICT"
142 strict is turned on for you. You can disable this with the \f(CW\*(C`\-no_strict\*(C'\fR or
143 \&\f(CW\*(C`\-no_pragmas\*(C'\fR import arguments:
144 .PP
145 .Vb 1
146 \& use Test2::V0 \-no_strict => 1;
147 .Ve
148 .SS WARNINGS
149 .IX Subsection "WARNINGS"
150 warnings are turned on for you. You can disable this with the
151 \&\f(CW\*(C`\-no_warnings\*(C'\fR or \f(CW\*(C`\-no_pragmas\*(C'\fR import arguments:
152 .PP
153 .Vb 1
154 \& use Test2::V0 \-no_warnings => 1;
155 .Ve
156 .SS UTF8
157 .IX Subsection "UTF8"
158 This is actually done via the Test2::Plugin::UTF8 plugin, see the
159 "PLUGINS" section for details.
160 .PP
161 \&\fBNote:\fR \f(CW\*(C`\-no_pragmas => 1\*(C'\fR will turn off the entire plugin.
162 .SH PLUGINS
163 .IX Header "PLUGINS"
164 .SS SRAND
165 .IX Subsection "SRAND"
166 See Test2::Plugin::SRand.
167 .PP
168 This will set the random seed to today's date. You can provide an alternate seed
169 with the \f(CW\*(C`\-srand\*(C'\fR import option:
170 .PP
171 .Vb 1
172 \& use Test2::V0 \-srand => 1234;
173 .Ve
174 .PP
175 You can also disable this behavior:
176 .PP
177 .Vb 1
178 \& use Test2::V0 \-no_srand => 1;
179 .Ve
180 .PP
181 \&\fBNote\fR When srand is on (default) it can cause problems with things like
182 File::Temp which will end up attempting the same "random" filenames for
183 every test process started on a given day (or sharing the same seed).
184 .SS UTF8
185 .IX Subsection "UTF8"
186 See Test2::Plugin::UTF8.
187 .PP
188 This will set the file, and all output handles (including formatter handles), to
189 utf8. This will turn on the utf8 pragma for the current scope.
190 .PP
191 This can be disabled using the \f(CW\*(C`\-no_utf8 => 1\*(C'\fR or \f(CW\*(C`\-no_pragmas => 1\*(C'\fR
192 import arguments.
193 .PP
194 .Vb 1
195 \& use Test2::V0 \-no_utf8 => 1;
196 .Ve
197 .SS "EXIT SUMMARY"
198 .IX Subsection "EXIT SUMMARY"
199 See Test2::Plugin::ExitSummary.
200 .PP
201 This plugin has no configuration.
202 .SH "API FUNCTIONS"
203 .IX Header "API FUNCTIONS"
204 See Test2::API for these
205 .ie n .IP "$ctx = \fBcontext()\fR" 4
206 .el .IP "\f(CW$ctx\fR = \fBcontext()\fR" 4
207 .IX Item "$ctx = context()"
208 .PD 0
209 .ie n .IP "$events = intercept { ... }" 4
210 .el .IP "\f(CW$events\fR = intercept { ... }" 4
211 .IX Item "$events = intercept { ... }"
212 .PD
213 .SH TOOLS
214 .IX Header "TOOLS"
215 .SS TARGET
216 .IX Subsection "TARGET"
217 See Test2::Tools::Target.
218 .PP
219 You can specify a target class with the \f(CW\*(C`\-target\*(C'\fR import argument. If you do
220 not provide a target then \f(CW$CLASS\fR and \f(CWCLASS()\fR will not be imported.
221 .PP
222 .Vb 1
223 \& use Test2::V0 \-target => \*(AqMy::Class\*(Aq;
224 \&
225 \& print $CLASS; # My::Class
226 \& print CLASS(); # My::Class
227 .Ve
228 .PP
229 Or you can specify names:
230 .PP
231 .Vb 1
232 \& use Test2::V0 \-target => { pkg => \*(AqSome::Package\*(Aq };
233 \&
234 \& pkg()\->xxx; # Call \*(Aqxxx\*(Aq on Some::Package
235 \& $pkg\->xxx; # Same
236 .Ve
237 .ie n .IP $CLASS 4
238 .el .IP \f(CW$CLASS\fR 4
239 .IX Item "$CLASS"
240 Package variable that contains the target class name.
241 .ie n .IP "$class = \fBCLASS()\fR" 4
242 .el .IP "\f(CW$class\fR = \fBCLASS()\fR" 4
243 .IX Item "$class = CLASS()"
244 Constant function that returns the target class name.
245 .SS DEFER
246 .IX Subsection "DEFER"
247 See Test2::Tools::Defer.
248 .ie n .IP "def $func => @args;" 4
249 .el .IP "def \f(CW$func\fR => \f(CW@args\fR;" 4
250 .IX Item "def $func => @args;"
251 .PD 0
252 .IP \fBdo_def()\fR 4
253 .IX Item "do_def()"
254 .PD
255 .SS BASIC
256 .IX Subsection "BASIC"
257 See Test2::Tools::Basic.
258 .ie n .IP "ok($bool, $name)" 4
259 .el .IP "ok($bool, \f(CW$name\fR)" 4
260 .IX Item "ok($bool, $name)"
261 .PD 0
262 .ie n .IP "ok($bool, $name, @diag)" 4
263 .el .IP "ok($bool, \f(CW$name\fR, \f(CW@diag\fR)" 4
264 .IX Item "ok($bool, $name, @diag)"
265 .IP pass($name) 4
266 .IX Item "pass($name)"
267 .ie n .IP "pass($name, @diag)" 4
268 .el .IP "pass($name, \f(CW@diag\fR)" 4
269 .IX Item "pass($name, @diag)"
270 .IP fail($name) 4
271 .IX Item "fail($name)"
272 .ie n .IP "fail($name, @diag)" 4
273 .el .IP "fail($name, \f(CW@diag\fR)" 4
274 .IX Item "fail($name, @diag)"
275 .IP diag($message) 4
276 .IX Item "diag($message)"
277 .IP note($message) 4
278 .IX Item "note($message)"
279 .ie n .IP "$todo = todo($reason)" 4
280 .el .IP "\f(CW$todo\fR = todo($reason)" 4
281 .IX Item "$todo = todo($reason)"
282 .ie n .IP "todo $reason => sub { ... }" 4
283 .el .IP "todo \f(CW$reason\fR => sub { ... }" 4
284 .IX Item "todo $reason => sub { ... }"
285 .ie n .IP "skip($reason, $count)" 4
286 .el .IP "skip($reason, \f(CW$count\fR)" 4
287 .IX Item "skip($reason, $count)"
288 .IP plan($count) 4
289 .IX Item "plan($count)"
290 .IP skip_all($reason) 4
291 .IX Item "skip_all($reason)"
292 .IP \fBdone_testing()\fR 4
293 .IX Item "done_testing()"
294 .IP bail_out($reason) 4
295 .IX Item "bail_out($reason)"
296 .PD
297 .SS COMPARE
298 .IX Subsection "COMPARE"
299 See Test2::Tools::Compare.
300 .ie n .IP "is($got, $want, $name)" 4
301 .el .IP "is($got, \f(CW$want\fR, \f(CW$name\fR)" 4
302 .IX Item "is($got, $want, $name)"
303 .PD 0
304 .ie n .IP "isnt($got, $do_not_want, $name)" 4
305 .el .IP "isnt($got, \f(CW$do_not_want\fR, \f(CW$name\fR)" 4
306 .IX Item "isnt($got, $do_not_want, $name)"
307 .ie n .IP "like($got, qr/match/, $name)" 4
308 .el .IP "like($got, qr/match/, \f(CW$name\fR)" 4
309 .IX Item "like($got, qr/match/, $name)"
310 .ie n .IP "unlike($got, qr/mismatch/, $name)" 4
311 .el .IP "unlike($got, qr/mismatch/, \f(CW$name\fR)" 4
312 .IX Item "unlike($got, qr/mismatch/, $name)"
313 .ie n .IP "$check = match(qr/pattern/)" 4
314 .el .IP "\f(CW$check\fR = match(qr/pattern/)" 4
315 .IX Item "$check = match(qr/pattern/)"
316 .ie n .IP "$check = mismatch(qr/pattern/)" 4
317 .el .IP "\f(CW$check\fR = mismatch(qr/pattern/)" 4
318 .IX Item "$check = mismatch(qr/pattern/)"
319 .ie n .IP "$check = validator(sub { return $bool })" 4
320 .el .IP "\f(CW$check\fR = validator(sub { return \f(CW$bool\fR })" 4
321 .IX Item "$check = validator(sub { return $bool })"
322 .ie n .IP "$check = hash { ... }" 4
323 .el .IP "\f(CW$check\fR = hash { ... }" 4
324 .IX Item "$check = hash { ... }"
325 .ie n .IP "$check = array { ... }" 4
326 .el .IP "\f(CW$check\fR = array { ... }" 4
327 .IX Item "$check = array { ... }"
328 .ie n .IP "$check = bag { ... }" 4
329 .el .IP "\f(CW$check\fR = bag { ... }" 4
330 .IX Item "$check = bag { ... }"
331 .ie n .IP "$check = object { ... }" 4
332 .el .IP "\f(CW$check\fR = object { ... }" 4
333 .IX Item "$check = object { ... }"
334 .ie n .IP "$check = meta { ... }" 4
335 .el .IP "\f(CW$check\fR = meta { ... }" 4
336 .IX Item "$check = meta { ... }"
337 .ie n .IP "$check = number($num)" 4
338 .el .IP "\f(CW$check\fR = number($num)" 4
339 .IX Item "$check = number($num)"
340 .ie n .IP "$check = string($str)" 4
341 .el .IP "\f(CW$check\fR = string($str)" 4
342 .IX Item "$check = string($str)"
343 .ie n .IP "$check = bool($bool)" 4
344 .el .IP "\f(CW$check\fR = bool($bool)" 4
345 .IX Item "$check = bool($bool)"
346 .ie n .IP "$check = check_isa($class_name)" 4
347 .el .IP "\f(CW$check\fR = check_isa($class_name)" 4
348 .IX Item "$check = check_isa($class_name)"
349 .ie n .IP "$check = in_set(@things)" 4
350 .el .IP "\f(CW$check\fR = in_set(@things)" 4
351 .IX Item "$check = in_set(@things)"
352 .ie n .IP "$check = not_in_set(@things)" 4
353 .el .IP "\f(CW$check\fR = not_in_set(@things)" 4
354 .IX Item "$check = not_in_set(@things)"
355 .ie n .IP "$check = check_set(@things)" 4
356 .el .IP "\f(CW$check\fR = check_set(@things)" 4
357 .IX Item "$check = check_set(@things)"
358 .ie n .IP "$check = item($thing)" 4
359 .el .IP "\f(CW$check\fR = item($thing)" 4
360 .IX Item "$check = item($thing)"
361 .ie n .IP "$check = item($idx => $thing)" 4
362 .el .IP "\f(CW$check\fR = item($idx => \f(CW$thing\fR)" 4
363 .IX Item "$check = item($idx => $thing)"
364 .ie n .IP "$check = field($name => $val)" 4
365 .el .IP "\f(CW$check\fR = field($name => \f(CW$val\fR)" 4
366 .IX Item "$check = field($name => $val)"
367 .ie n .IP "$check = call($method => $expect)" 4
368 .el .IP "\f(CW$check\fR = call($method => \f(CW$expect\fR)" 4
369 .IX Item "$check = call($method => $expect)"
370 .ie n .IP "$check = call_list($method => $expect)" 4
371 .el .IP "\f(CW$check\fR = call_list($method => \f(CW$expect\fR)" 4
372 .IX Item "$check = call_list($method => $expect)"
373 .ie n .IP "$check = call_hash($method => $expect)" 4
374 .el .IP "\f(CW$check\fR = call_hash($method => \f(CW$expect\fR)" 4
375 .IX Item "$check = call_hash($method => $expect)"
376 .ie n .IP "$check = prop($name => $expect)" 4
377 .el .IP "\f(CW$check\fR = prop($name => \f(CW$expect\fR)" 4
378 .IX Item "$check = prop($name => $expect)"
379 .ie n .IP "$check = check($thing)" 4
380 .el .IP "\f(CW$check\fR = check($thing)" 4
381 .IX Item "$check = check($thing)"
382 .ie n .IP "$check = T()" 4
383 .el .IP "\f(CW$check\fR = T()" 4
384 .IX Item "$check = T()"
385 .ie n .IP "$check = F()" 4
386 .el .IP "\f(CW$check\fR = F()" 4
387 .IX Item "$check = F()"
388 .ie n .IP "$check = D()" 4
389 .el .IP "\f(CW$check\fR = D()" 4
390 .IX Item "$check = D()"
391 .ie n .IP "$check = \fBDF()\fR" 4
392 .el .IP "\f(CW$check\fR = \fBDF()\fR" 4
393 .IX Item "$check = DF()"
394 .ie n .IP "$check = E()" 4
395 .el .IP "\f(CW$check\fR = E()" 4
396 .IX Item "$check = E()"
397 .ie n .IP "$check = \fBDNE()\fR" 4
398 .el .IP "\f(CW$check\fR = \fBDNE()\fR" 4
399 .IX Item "$check = DNE()"
400 .ie n .IP "$check = \fBFDNE()\fR" 4
401 .el .IP "\f(CW$check\fR = \fBFDNE()\fR" 4
402 .IX Item "$check = FDNE()"
403 .ie n .IP "$check = U()" 4
404 .el .IP "\f(CW$check\fR = U()" 4
405 .IX Item "$check = U()"
406 .ie n .IP "$check = L()" 4
407 .el .IP "\f(CW$check\fR = L()" 4
408 .IX Item "$check = L()"
409 .ie n .IP "$check = exact_ref($ref)" 4
410 .el .IP "\f(CW$check\fR = exact_ref($ref)" 4
411 .IX Item "$check = exact_ref($ref)"
412 .IP \fBend()\fR 4
413 .IX Item "end()"
414 .IP \fBetc()\fR 4
415 .IX Item "etc()"
416 .ie n .IP "filter_items { grep { ... } @_ }" 4
417 .el .IP "filter_items { grep { ... } \f(CW@_\fR }" 4
418 .IX Item "filter_items { grep { ... } @_ }"
419 .ie n .IP "$check = event $type => ..." 4
420 .el .IP "\f(CW$check\fR = event \f(CW$type\fR => ..." 4
421 .IX Item "$check = event $type => ..."
422 .ie n .IP "@checks = fail_events $type => ..." 4
423 .el .IP "\f(CW@checks\fR = fail_events \f(CW$type\fR => ..." 4
424 .IX Item "@checks = fail_events $type => ..."
425 .PD
426 .SS "CLASSIC COMPARE"
427 .IX Subsection "CLASSIC COMPARE"
428 See Test2::Tools::ClassicCompare.
429 .ie n .IP "cmp_ok($got, $op, $want, $name)" 4
430 .el .IP "cmp_ok($got, \f(CW$op\fR, \f(CW$want\fR, \f(CW$name\fR)" 4
431 .IX Item "cmp_ok($got, $op, $want, $name)"
432 .SS SUBTEST
433 .IX Subsection "SUBTEST"
434 See Test2::Tools::Subtest.
435 .ie n .IP "subtest $name => sub { ... };" 4
436 .el .IP "subtest \f(CW$name\fR => sub { ... };" 4
437 .IX Item "subtest $name => sub { ... };"
438 (Note: This is called \f(CWsubtest_buffered()\fR in the Tools module.)
439 .SS CLASS
440 .IX Subsection "CLASS"
441 See Test2::Tools::Class.
442 .ie n .IP "can_ok($thing, @methods)" 4
443 .el .IP "can_ok($thing, \f(CW@methods\fR)" 4
444 .IX Item "can_ok($thing, @methods)"
445 .PD 0
446 .ie n .IP "isa_ok($thing, @classes)" 4
447 .el .IP "isa_ok($thing, \f(CW@classes\fR)" 4
448 .IX Item "isa_ok($thing, @classes)"
449 .ie n .IP "DOES_ok($thing, @roles)" 4
450 .el .IP "DOES_ok($thing, \f(CW@roles\fR)" 4
451 .IX Item "DOES_ok($thing, @roles)"
452 .PD
453 .SS ENCODING
454 .IX Subsection "ENCODING"
455 See Test2::Tools::Encoding.
456 .IP set_encoding($encoding) 4
457 .IX Item "set_encoding($encoding)"
458 .SS EXPORTS
459 .IX Subsection "EXPORTS"
460 See Test2::Tools::Exports.
461 .IP "imported_ok('function', '$scalar', ...)" 4
462 .IX Item "imported_ok('function', '$scalar', ...)"
463 .PD 0
464 .IP "not_imported_ok('function', '$scalar', ...)" 4
465 .IX Item "not_imported_ok('function', '$scalar', ...)"
466 .PD
467 .SS REF
468 .IX Subsection "REF"
469 See Test2::Tools::Ref.
470 .ie n .IP "ref_ok($ref, $type)" 4
471 .el .IP "ref_ok($ref, \f(CW$type\fR)" 4
472 .IX Item "ref_ok($ref, $type)"
473 .PD 0
474 .ie n .IP "ref_is($got, $want)" 4
475 .el .IP "ref_is($got, \f(CW$want\fR)" 4
476 .IX Item "ref_is($got, $want)"
477 .ie n .IP "ref_is_not($got, $do_not_want)" 4
478 .el .IP "ref_is_not($got, \f(CW$do_not_want\fR)" 4
479 .IX Item "ref_is_not($got, $do_not_want)"
480 .PD
481 .PP
482 See Test2::Tools::Refcount.
483 .ie n .IP "is_refcount($ref, $count, $description)" 4
484 .el .IP "is_refcount($ref, \f(CW$count\fR, \f(CW$description\fR)" 4
485 .IX Item "is_refcount($ref, $count, $description)"
486 .PD 0
487 .ie n .IP "is_oneref($ref, $description)" 4
488 .el .IP "is_oneref($ref, \f(CW$description\fR)" 4
489 .IX Item "is_oneref($ref, $description)"
490 .ie n .IP "$count = refcount($ref)" 4
491 .el .IP "\f(CW$count\fR = refcount($ref)" 4
492 .IX Item "$count = refcount($ref)"
493 .PD
494 .SS MOCK
495 .IX Subsection "MOCK"
496 See Test2::Tools::Mock.
497 .ie n .IP "$control = mock ..." 4
498 .el .IP "\f(CW$control\fR = mock ..." 4
499 .IX Item "$control = mock ..."
500 .PD 0
501 .ie n .IP "$bool = mocked($thing)" 4
502 .el .IP "\f(CW$bool\fR = mocked($thing)" 4
503 .IX Item "$bool = mocked($thing)"
504 .PD
505 .SS EXCEPTION
506 .IX Subsection "EXCEPTION"
507 See Test2::Tools::Exception.
508 .ie n .IP "$exception = dies { ... }" 4
509 .el .IP "\f(CW$exception\fR = dies { ... }" 4
510 .IX Item "$exception = dies { ... }"
511 .PD 0
512 .ie n .IP "$bool = lives { ... }" 4
513 .el .IP "\f(CW$bool\fR = lives { ... }" 4
514 .IX Item "$bool = lives { ... }"
515 .ie n .IP "$bool = try_ok { ... }" 4
516 .el .IP "\f(CW$bool\fR = try_ok { ... }" 4
517 .IX Item "$bool = try_ok { ... }"
518 .PD
519 .SS WARNINGS
520 .IX Subsection "WARNINGS"
521 See Test2::Tools::Warnings.
522 .ie n .IP "$count = warns { ... }" 4
523 .el .IP "\f(CW$count\fR = warns { ... }" 4
524 .IX Item "$count = warns { ... }"
525 .PD 0
526 .ie n .IP "$warning = warning { ... }" 4
527 .el .IP "\f(CW$warning\fR = warning { ... }" 4
528 .IX Item "$warning = warning { ... }"
529 .ie n .IP "$warnings_ref = warnings { ... }" 4
530 .el .IP "\f(CW$warnings_ref\fR = warnings { ... }" 4
531 .IX Item "$warnings_ref = warnings { ... }"
532 .ie n .IP "$bool = no_warnings { ... }" 4
533 .el .IP "\f(CW$bool\fR = no_warnings { ... }" 4
534 .IX Item "$bool = no_warnings { ... }"
535 .PD
536 .SH SOURCE
537 .IX Header "SOURCE"
538 The source code repository for Test2\-Suite can be found at
539 \&\fIhttps://github.com/Test\-More/Test2\-Suite/\fR.
540 .SH MAINTAINERS
541 .IX Header "MAINTAINERS"
542 .IP "Chad Granum <[email protected]>" 4
543 .IX Item "Chad Granum <[email protected]>"
544 .SH AUTHORS
545 .IX Header "AUTHORS"
546 .PD 0
547 .IP "Chad Granum <[email protected]>" 4
548 .IX Item "Chad Granum <[email protected]>"
549 .PD
550 .SH COPYRIGHT
551 .IX Header "COPYRIGHT"
552 Copyright 2018 Chad Granum <[email protected]>.
553 .PP
554 This program is free software; you can redistribute it and/or
555 modify it under the same terms as Perl itself.
556 .PP
557 See \fIhttp://dev.perl.org/licenses/\fR