1Test::Stream::Compare::UOsbejrecCto(n3t)ributed Perl DocTuemsetn:t:aSttiroenam::Compare::Object(3)
2
3
4

NAME

6       Test::Stream::Compare::Object - Representation of an object during deep
7       comparison.
8

DEPRECATED

10       This distribution is deprecated in favor of Test2, Test2::Suite, and
11       Test2::Workflow.
12
13       See Test::Stream::Manual::ToTest2 for a conversion guide.
14

DESCRIPTION

16       This class lets you specify an expected object in a deep comparison.
17       You can check the fields/elements of the underlying reference, call
18       methods to verify results, and do meta checks for object type and ref
19       type.
20

METHODS

22       $class = $obj->meta_class
23           The meta-class to be used when checking the object type. This is
24           mainly listed because it is useful to override for specialized
25           object subclasses.
26
27           This normally just returns Test::Stream::Compare::Meta.
28
29       $class = $obj->object_base
30           The base-class to be expected when checking the object type. This
31           is mainly listed because it is useful to override for specialized
32           object subclasses.
33
34           This normally just returns 'UNIVERSAL'.
35
36       $obj->add_prop(...)
37           Add a meta-propery to check, see Test::Stream::Compare::Meta. This
38           method just delegates.
39
40       $obj->add_field(...)
41           Add a hash-field to check, see Test::Stream::Compare::Hash. This
42           method just delegates.
43
44       $obj->add_item(...)
45           Add an array item to check, see Test::Stream::Compare::Array. This
46           method just delegates.
47
48       $obj->add_call($method, $check)
49       $obj->add_call($method, $check, $name)
50           Add a method call check. This will call the specified method on
51           your object and verify the result. $method may be a method name, or
52           a coderef. In the case of a coderef it can be helpful to provide an
53           alternate name. When no name is provided the name is either $method
54           or the string '\&CODE'.
55

SOURCE

57       The source code repository for Test::Stream can be found at
58       http://github.com/Test-More/Test-Stream/.
59

MAINTAINERS

61       Chad Granum <exodist@cpan.org>
62

AUTHORS

64       Chad Granum <exodist@cpan.org>
65
67       Copyright 2015 Chad Granum <exodist7@gmail.com>.
68
69       This program is free software; you can redistribute it and/or modify it
70       under the same terms as Perl itself.
71
72       See http://dev.perl.org/licenses/
73
74
75
76perl v5.32.0                      2020-07-28  Test::Stream::Compare::Object(3)
Impressum