Description
Perl tests can create mock objects that emulate interfaces which are difficult to use directly in a test. This helps developers test code that depends on external systems, complex APIs, or awkward objects.
It is a developer testing library. Mock objects should match the real interface closely enough that tests do not drift away from production behavior.