1Test2::Compare::OrderedUSsuebrseCto(n3t)ributed Perl DocTuemsetn2t:a:tCioomnpare::OrderedSubset(3)
2
3
4

NAME

6       Test2::Compare::OrderedSubset - Internal representation of an ordered
7       subset.
8

DESCRIPTION

10       This module is used to ensure an array has all the expected items int
11       he expected order. It ignores any unexpected items mixed into the
12       array. It only cares that all the expected values are present, and in
13       order, everything else is noise.
14

METHODS

16       $ref = $arr->inref()
17           If the instance was constructed from an actual array, this will
18           have the reference to that array.
19
20       $arrayref = $arr->items()
21       $arr->set_items($arrayref)
22           All the expected items, in order.
23
24       $name = $arr->name()
25           Always returns the string "<ORDERED SUBSET>".
26
27       $bool = $arr->verify(got => $got, exists => $bool)
28           Check if $got is an array reference or not.
29
30       $arr->add_item($item)
31           Add an item to the list of values to check.
32
33       @deltas = $arr->deltas(got => $got, convert => \&convert, seen =>
34       \%seen)
35           Find the differences between the expected array values and those in
36           the $got arrayref.
37

SOURCE

39       The source code repository for Test2-Suite can be found at
40       https://github.com/Test-More/Test2-Suite/.
41

MAINTAINERS

43       Chad Granum <exodist@cpan.org>
44

AUTHORS

46       Chad Granum <exodist@cpan.org>
47
49       Copyright 2018 Chad Granum <exodist@cpan.org>.
50
51       This program is free software; you can redistribute it and/or modify it
52       under the same terms as Perl itself.
53
54       See http://dev.perl.org/licenses/
55
56
57
58perl v5.30.0                      2019-07-26  Test2::Compare::OrderedSubset(3)
Impressum