Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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?

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://882810]
Approved by ELISHEVA
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2018-05-24 13:03 GMT
Find Nodes?
    Voting Booth?