Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Test::More::can() can't find method

by geoffleach (Beadle)
on Jan 18, 2011 at 04:47 UTC ( #882810=perlquestion: print w/ replies, xml ) Need Help??
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:

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.
and so on, for all of the module test. The missing methods are in the .xs files.

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?

Comment on Test::More::can() can't find method
Download Code
Re: Test::More::can() can't find method
by geoffleach (Beadle) on Jan 19, 2011 at 19:31 UTC

    The solution to this problem was previously posted in node_id=841428.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://882810]
Approved by ELISHEVA
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-09-21 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (176 votes), past polls