Test::More::can_ok when using AutoLoader

2002-08-30 Thread Elizabeth Mattijsen
Is there an easy way to check methods, whose loading is deferred with AutoLoader, with the can_ok() check? Or would some magic need to be added to AutoLoader.pm? Currently, you get an error that the subroutines do not exist. Liz

Re: Test::More::can_ok when using AutoLoader

2002-08-30 Thread Michael G Schwern
On Fri, Aug 30, 2002 at 04:01:11PM +0200, Elizabeth Mattijsen wrote: > Is there an easy way to check methods, whose loading is deferred with > AutoLoader, with the can_ok() check? Nope. You have to create stubs. The AutoLoader module should do this automatically for you assuming you've gone th

Re: Test::More::can_ok when using AutoLoader

2002-08-31 Thread Elizabeth Mattijsen
At 02:38 PM 8/30/02 -0700, Michael G Schwern wrote: >On Fri, Aug 30, 2002 at 04:01:11PM +0200, Elizabeth Mattijsen wrote: > > Is there an easy way to check methods, whose loading is deferred with > > AutoLoader, with the can_ok() check? >Nope. You have to create stubs. The AutoLoader module shou

Re: Test::More::can_ok when using AutoLoader

2002-09-02 Thread Michael G Schwern
On Sat, Aug 31, 2002 at 02:05:53PM +0200, Elizabeth Mattijsen wrote: > >$ perl -Mblib -wle 'use AutoExample; print "Yes" if > >AutoExample->can("foo")' > >Using /home/schwern/tmp/AutoExample/blib > >Yes > > Hmmm... I'm doing BEGIN { use_ok( 'Thread::Pool' ) }... Maybe there is a > difference