Zaxo has asked for the wisdom of the Perl Monks concerning the following question:
I'm having my first run-in with XS code requiring a nontrivial DESTROY method for my objects. I think the code is right, but I'd like to prove it with a test framework in the module's t/ directory.
What techniques do you use to write tests of DESTROY? Do you bring in help from the Devel namespace? Instrument DESTROY itself?
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Testing DESTROY Methods?
by robartes (Priest) on Oct 08, 2002 at 06:45 UTC | |
|
(tye)Re: Testing DESTROY Methods?
by tye (Sage) on Oct 08, 2002 at 15:01 UTC | |
|
Re: Testing DESTROY Methods?
by chromatic (Archbishop) on Oct 08, 2002 at 16:28 UTC |