Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How to test different back ends?

by andreas1234567 (Vicar)
on May 31, 2007 at 12:17 UTC ( #618466=note: print w/replies, xml ) Need Help??


in reply to How to test different back ends?

looks like there's just different test files for each backend
Why don't you do the same? It is probably easier to write, understand and maintain separate test files for each module than having a single, large test for everything.

On the other hand, you can experiment with Symbol and delete_package. Note the BUGS section in the docs though:
"Symbol::delete_package" is a bit too powerful. It undefines every symbol that lives in the specified package and in its sub-packages. Since perl, for performance reasons, does not perform a symbol table lookup each time a function is called or a global variable is accessed, some code that has already been loaded and that makes use of symbols in package "Foo" may stop working after you delete "Foo", even if you reload the "Foo" module afterwards.
And, please do make sure your source code compiles before you post. Thanks.

Andreas
--

Replies are listed 'Best First'.
Re^2: How to test different back ends?
by skazat (Chaplain) on May 31, 2007 at 20:18 UTC

    Why don't you do the same? It is probably easier to write, understand and maintain separate test files for each module than having a single, large test for everything.

    basically, no matter what the backend you use, the API is the same. This means, the test files are going to be almost exactly the same too, and as it has been hammered into my head, don't ever repeat yourself :)

     

    -justin simoni
    skazat me

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://618466]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2022-06-30 14:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (98 votes). Check out past polls.

    Notices?