The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

EntityModel::Test::Storage - tests for EntityModel::Storage and subclasses

VERSION

version 0.102

SYNOPSIS

 use EntityModel::Test::Storage;
 storage_ok('EntityModel::Storage::Perl', '::Perl subclass works');

DESCRIPTION

Provides functions for testing EntityModel::Storage subclasses.

EXPORTS

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 EntityModel::Test::Storage ();
 EntityModel::Test::Storage::storage_ok(...);

FUNCTIONS

storage_ok

Runs all available tests (including attempting to load the module) and returns the usual Test::Builder ok/fail response.

storage_methods_ok

Check whether the expected methods are present. Requires the class to be loaded first.

_methods_ok

Internal helper function to report whether the expected methods are present for the subclass.

_simple_model

_report_status

Internal helper function to report pass/fail via Test::Builder.

INHERITED METHODS

Exporter

as_heavy, export, export_fail, export_ok_tags, export_tags, export_to_level, import, require_version

EntityModel::BaseClass

clone, dump, new, sap

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2008-2012. Licensed under the same terms as Perl itself.