On Thursday 22 February 2007 23:21, Ovid wrote: > --- Luke Closs <[EMAIL PROTECTED]> wrote:
> > Plus, I'm trying to get this t/lib mocking meme going. :) > > Except that I am already using t/lib for a bunch of other helper > modules I use in our testing code. Telling me "you can only use t/lib > for mocked modules" means that your module pretty much doesn't work for > our current code layout at work (I've other projects with this issue, > too). Hm, I had the impression that mocked loaded modules only from t/lib, not that the only modules you could load from t/lib were mocked modules. It should be pretty possible to localize @INC within mocked->import() such that only that does the mocking magic. If you used other modules from t/lib in another way, they wouldn't get the magic. It's at least doable that way. -- c