Skip Menu |

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

Report information
The Basics
Id: 87896
Status: new
Priority: 0/
Queue: Test-SubCalls

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

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



Subject: I'd like to be able to avoid hard-coding the number of expected calls
Perhaps via cmp_ok() so something like: sub_cmp_calls $subname, $comparison_operator, $expected_calls [, $message sub_cmp_calls 'Foo::foo', '>=', 1, 'Use a custom test message';
And/or perhaps simply add a sub that returns the count: cmp_ok sub_calls_count('Foo::foo'), '>=', 1;