Override subroutines in a module for unit testing
38.63 KB
built 2026-10-17 01:20:14 GMT
Description
Test::MockModule lets you temporarily redefine subroutines in other packages
for the purposes of unit testing.
A Test::MockModule object is set up to mock subroutines for a given module. The
object remembers the original subroutine so it can easily be restored. This
happens automatically when all MockModule objects for the given module go out
of scope, or when you unmock() the subroutine.
Dependencies
13 totalRequires11
- perl(Carp)
- perl(SUPER)
- perl(Scalar::Util)
- perl(strict)
- perl(vars)
- perl(warnings)
- perl-libs
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(PayloadFilesHavePrefix) <= 4.0-1
- rpmlib(PayloadIsZstd) <= 5.4.18-1
Provides2
- perl(Test::MockModule) = 0.185.3
- perl-Test-MockModule = 0.185.3-2.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
8
Files 1–8 of 8
Component of
buildroots that installed this RPMBuildroot ![]() |
Created | State |
|---|---|---|
| f45-build-50689-892 | 2026-10-29 14:05:26 | expired |
Buildroots 1–1 of 1

