1Mock::Sub::Child(3)   User Contributed Perl Documentation  Mock::Sub::Child(3)
2
3
4

NAME

6       Mock::Sub::Child - Provides for Mock::Sub
7

METHODS

9       Please refer to the "Mock::Sub" parent module for full documentation.
10       The descriptions here are just a briefing.
11
12   new
13       This method can only be called by the parent "Mock::Sub" module.
14
15   called
16       Returns bool whether the mocked sub has been called yet.
17
18   called_count
19       Returns an integer representing the number of times the mocked sub has
20       been called.
21
22   called_with
23       Returns a list of arguments the mocked sub was called with.
24
25   mock
26       This method should only be called by the parent mock object. You
27       shouldn't be calling this.
28
29   remock
30       Re-mocks an unmocked sub back to the same subroutine it was originally
31       mocked with.
32
33   mocked_state
34       Returns bool whether the sub the object represents is currently mocked
35       or not.
36
37   name
38       Returns the name of the sub this object is mocking.
39
40   return_value
41       Send in any values (list or scalar) that you want the mocked sub to
42       return when called.
43
44   side_effect
45       Send in a code reference with any actions you want the mocked sub to
46       perform after it's been called.
47
48   reset
49       Resets all state of the object back to default (does not unmock the
50       sub).
51
52   unmock
53       Restores original functionality of the mocked sub, and calls "reset()"
54       on the object.
55
56
57
58perl v5.28.1                      2017-12-28               Mock::Sub::Child(3)
Impressum