NAME

Class::PObject::Test::Basic - Class::PObject's basic test suit

SYNOPSIS

# inside t/*.t files:
use Class::PObject::Test::Basic;
$t = new Class::PObject::Test::Basic($drivername, $datasource);
$t->run() # running the tests

ABSTRACT

Class::PObject::Test::Basic is a subclass of Class::PObject::Test::Basic,
and is used for running basic tests for a specific driver.

DESCRIPTION

This library is particularly useful for Class::PObject driver authors. It provides a convenient way of testing your newly created PObject driver to see if it functions properly, as well as helps you to write test scripts with literally couple of lines of code.

Class::PObject::Test::Basic is a subclass of Class::PObject::Test.

NATURE OF TESTS

Class::POBject::Test::Basic runs tests to check following aspects of the driver:

  • pobject declarations.

  • Creating and initializing pobject instances

  • Proper functionality of the accessor methods and integrity of in-memory data

  • Synchronization of in-memory data into disk

  • If basic load() performs as expected, in both array and scalar context.

  • Checking the integrity of synchronized disk data

  • Checking for count() - both simple syntax, and count(\%terms) syntax.

  • Checking different combinations of load(undef, \%args), load(\%terms, undef), load(\%terms, \%args)

  • Checking if objects can be removed off the disk successfully

In addition to the above tests, Class::PObject::Test::Basic also address such issues as multiple instances of the same object as well as multiple classes and multiple objects cases, which have been major sources for bugs for Class::PObject drivers.

SEE ALSO

Class::PObject::Test, Class::PObject, Class::PObject::Driver

AUTHOR

Sherzod B. Ruzmetov, <sherzodr@cpan.org>, http://author.handalak.com/

COPYRIGHT AND LICENSE

Copyright 2003 by Sherzod B. Ruzmetov.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.