classes::Test - functions to help with classes pragma testing
can_new can_set_get has_decl has_class_const has_mixins has_mixins_hash is_classes MyClass; is_classes main; is_throwable X::Mine; is_classes_exc X::Mine;
Generic tests based on Test::Builder designed to help write unit tests for code that uses the classes pragma.
classes
Most of the functions that accept a class argument will accept an object argument in place of the class and will look up the class of that object to use.
Class has a required new constructor method.
new
Class has the set and get public attribute accessor dispatch methods defined as well as the private _set and _get pair for internal use.
set
get
_set
_get
Class has the DECL declaration method and hash ref defined.
Class has the CLASS constant and method defined.
Class has the MIXIN method defined.
Class has the MIXIN method defined and it is a HASH ref.
HASH
Class is a class created or compatible with classes.
Class fulfills the classes::Throwable interface.
Class fulfills the classes::Exception interface.
To install classes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm classes
CPAN shell
perl -MCPAN -e shell install classes
For more information on module installation, please visit the detailed CPAN module installation guide.