Monkey patching with test mocking in mind
26.89 KB
built 2026-10-16 21:59:15 GMT
Description
Mock::MonkeyPatch injects a subroutine in the place of an existing one.
It returns an object by which you can revisit the manner in which the
mocked subroutine was called. Further when the object goes out of
scope (or when the "restore" method is called) the original subroutine
is replaced.
Dependencies
14 totalRequires13
- coreutils
- perl(:VERSION) >= 5.6
- perl(Carp)
- perl(Module::Build::Tiny) >= 0.034
- perl(Scalar::Util)
- perl(Sub::Util) >= 1.40
- perl(Test::More) >= 0.96
- perl(strict)
- perl(warnings)
- perl-generators
- perl-interpreter
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
Provides1
- perl-Mock-MonkeyPatch = 1.03-5.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
2Name ![]() |
Size |
|---|---|
| Mock-MonkeyPatch-1.03.tar.gz | 13.92 KB |
| perl-Mock-MonkeyPatch.spec | 3.54 KB |
Files 1–2 of 2
Component of
buildroots that installed this RPMNo Buildroots
