geoffleach has asked for the wisdom of the Perl Monks concerning the following question:
I'm attempting to install Audio::Taglib. In this distribution, most of the methods are in .xs files. After building the dist (with the appropriate version of taglib), testing fails, for example:
and so on, for all of the module test. The missing methods are in the .xs files.perl -Iblib/lib -Iblib/arch t/TagLib_APE_Footer.t 1..20 ok 1 - use Audio::TagLib::APE::Footer; not ok 2 - Audio::TagLib::APE::Footer->can(...) # Failed test 'Audio::TagLib::APE::Footer->can(...)' # at t/TagLib_APE_Footer.t line 19. # Audio::TagLib::APE::Footer->can('new') failed # Audio::TagLib::APE::Footer->can('DESTROY') failed # Audio::TagLib::APE::Footer->can('version') failed # can_ok failed Can't locate object method "new" via package "Audio::TagLib::APE::Footer" at t/TagLib_APE_Footer.t line 22.
This dist fails miserably on the automated tests because the available version of the taglib is not supported by TagLib. I've provided the correct version.
Any suggestions?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Test::More::can() can't find method
by geoffleach (Scribe) on Jan 19, 2011 at 19:31 UTC |