./devel/p5-Test-Mock-Cmd, Mock system(), exec(), and qx() for testing

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.7nb1, Package name: p5-Test-Mock-Cmd-0.7nb1, Maintainer: pkgsrc-users

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


Master sites: (Expand)

Filesize: 8.963 KB

Version history: (Expand)


CVS history: (Expand)


   2024-11-16 13:08:07 by Thomas Klausner | Files touched by this commit (2504)
Log message:
*: recursive bump for perl 5.40
   2024-02-15 22:42:49 by Thomas Klausner | Files touched by this commit (1)
Log message:
p5-Test-Mock-Cmd: fix MASTER_SITES
   2024-02-10 02:15:39 by Amitai Schleier | Files touched by this commit (3)
Log message:
Add p5-Test-Mock-Cmd: Mock system(), exec(), and qx() for testing

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