EntityModel::Test::Storage - tests for EntityModel::Storage and subclasses
version 0.102
use EntityModel::Test::Storage; storage_ok('EntityModel::Storage::Perl', '::Perl subclass works');
Provides functions for testing EntityModel::Storage subclasses.
Since this is a test class, functions are exported automatically to match behaviour of other test modules such as Test::More. To disable this, pass an empty list on the use line or use require instead:
use
require
use EntityModel::Test::Storage (); EntityModel::Test::Storage::storage_ok(...);
Runs all available tests (including attempting to load the module) and returns the usual Test::Builder ok/fail response.
Check whether the expected methods are present. Requires the class to be loaded first.
Internal helper function to report whether the expected methods are present for the subclass.
Internal helper function to report pass/fail via Test::Builder.
as_heavy, export, export_fail, export_ok_tags, export_tags, export_to_level, import, require_version
clone, dump, new, sap
Tom Molesworth <cpan@entitymodel.com>
Copyright Tom Molesworth 2008-2012. Licensed under the same terms as Perl itself.
To install EntityModel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EntityModel
CPAN shell
perl -MCPAN -e shell install EntityModel
For more information on module installation, please visit the detailed CPAN module installation guide.