Mock::Sub::Child(3pm) | User Contributed Perl Documentation | Mock::Sub::Child(3pm) |
Mock::Sub::Child - Provides for Mock::Sub
Please refer to the "Mock::Sub" parent module for full documentation. The descriptions here are just a briefing.
This method can only be called by the parent "Mock::Sub" module.
Returns bool whether the mocked sub has been called yet.
Returns an integer representing the number of times the mocked sub has been called.
Returns a list of arguments the mocked sub was called with.
This method should only be called by the parent mock object. You shouldn't be calling this.
Re-mocks an unmocked sub back to the same subroutine it was originally mocked with.
Returns bool whether the sub the object represents is currently mocked or not.
Returns the name of the sub this object is mocking.
Send in any values (list or scalar) that you want the mocked sub to return when called.
Send in a code reference with any actions you want the mocked sub to perform after it's been called.
Resets all state of the object back to default (does not unmock the sub).
Restores original functionality of the mocked sub, and calls "reset()" on the object.
2022-03-06 | perl v5.34.0 |