GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Mock::Sub::Child(3) User Contributed Perl Documentation Mock::Sub::Child(3)

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.

2017-12-28 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.