Mock system(), exec(), and qx() for testing
https://metacpan.org/release/Test-Mock-Cmd
Mock system(), exec(), qx() (AKA `` and readpipe()) with your own functions in order to test code that may call them.
Some uses might be:
avoid actually running the system command, just pretend we did (simulate [un]expected output, return values, etc)
test various return value handling (e.g. the system command core dumps how does the object handle that)
test that the arguments that will be passed to a system command are correct
simulate that really hard to reproduce low level edge case to make sure your code works correctly on affected systems
etc etc
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:perl/perl-Test-Mock-Cmd && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
Test-Mock-Cmd-0.7.tar.gz | 0000009178 8.96 KB | |
cpanspec.yml | 0000000923 923 Bytes | |
perl-Test-Mock-Cmd.changes | 0000000158 158 Bytes | |
perl-Test-Mock-Cmd.spec | 0000002180 2.13 KB |
Latest Revision
Dirk Stoecker (dstoecker)
accepted
request 888067
from
Tina Müller (tinita)
(revision 1)
Dependency for Playwright
Comments 0