Test::C2FIT::RowFixture - A RowFixture compares rows in the test data to objects in the system under test. Methods are invoked on the objects and returned values compared to those in the table. An algorithm matches rows with objects based on one or more keys. Objects may be missing or in surplus and are so noted.
Normally, you subclass RowFixture.
package MyColumnFixture; use base 'Test::C2FIT::ColumnFixture;' sub query { my $self = shift; return [ <your data> ]; }
query() should return an arrayref consisting of either blessed objects (fields and methods are used) or unbessed hashrefs (only fields are used).
When your data is not stored as string, then you'll propably need an TypeAdapter. See more in Fixture.
Extensive and up-to-date documentation on FIT can be found at: http://fit.c2.com/
To install Test::C2FIT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::C2FIT
CPAN shell
perl -MCPAN -e shell install Test::C2FIT
For more information on module installation, please visit the detailed CPAN module installation guide.