Skip Menu |

This queue is for tickets about the Test-Mock-Cmd CPAN distribution.

Report information
The Basics
Id: 84975
Status: resolved
Priority: 0/
Queue: Test-Mock-Cmd

People
Owner: Nobody in particular
Requestors: dmuey [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.6



Subject: Add in selective mocking
e.g. pass in a hash anywhere you'd pass in a codref and it builds a dispatch function for you. use T::M::C system => { 'halt' => sub { 1 }, 'foo' => sub { 2 }, }; system('halt', …) # does 1 system('foo', …) # does 2 system("whatebver", …) # does normal system