1Test2::Compare::Meta(3)User Contributed Perl DocumentatioTnest2::Compare::Meta(3)
2
3
4

NAME

6       Test2::Compare::Meta - Check library for meta-checks
7

DESCRIPTION

9       Sometimes in a deep comparison you want to run extra checks against an
10       item down the chain. This library allows you to write a check that
11       verifies several attributes of an item.
12

DEFINED CHECKS

14       blessed
15           Lets you check that an item is blessed, and that it is blessed into
16           the expected class.
17
18       reftype
19           Lets you check the reftype of the item.
20
21       isa Lets you check if the item is an instance of the expected class.
22
23       this
24           Lets you check the item itself.
25
26       size
27           Lets you check the size of the item. For an arrayref this is the
28           number of elements. For a hashref this is the number of keys. For
29           everything else this is undef.
30

SOURCE

32       The source code repository for Test2-Suite can be found at
33       https://github.com/Test-More/Test2-Suite/.
34

MAINTAINERS

36       Chad Granum <exodist@cpan.org>
37

AUTHORS

39       Chad Granum <exodist@cpan.org>
40
42       Copyright 2018 Chad Granum <exodist@cpan.org>.
43
44       This program is free software; you can redistribute it and/or modify it
45       under the same terms as Perl itself.
46
47       See http://dev.perl.org/licenses/
48
49
50
51perl v5.36.0                      2023-03-23           Test2::Compare::Meta(3)
Impressum