Subject: | Does not play well with exporter |
Date: | Wed, 13 May 2015 15:54:50 -0700 |
To: | <bug-Test-Mock-Simple [...] rt.cpan.org> |
From: | Ethan Allen <eallenvii [...] gmail.com> |
Was attempting to mock a CPAN module, Time::HiRes where I was using exporter
to get gettimeofday() to return a known calculated value.
From the test harness I could call gettimeofday and get my value. From the
module I was testing when it called gettimeofday it would return the real
value.
I surmise that while I mocked Time::HiRes::gettimeofday, I didn't mock
MyModule::gettimeofday which is where exporter stuck it and what my test
harness was calling.
-e