wok-6.x view perl-test-mockmodule/description.txt @ rev 25558

Up libqcow (20221124)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 24 09:03:56 2023 +0000 (17 months ago)
parents
children
line source
1 Test::MockModule lets you temporarily redefine subroutines in other packages
2 for the purposes of unit testing.
4 A Test::MockModule object is set up to mock subroutines for a given module.
5 The object remembers the original subroutine so it can be easily restored.
6 This happens automatically when all MockModule objects for the given module
7 go out of scope, or when you unmock() the subroutine.