Tony Byrne > Test-C2FIT-0.08 > Test::C2FIT::RowFixture

Download:
Test-C2FIT-0.08.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

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.

SYNOPSIS ^

Normally, you subclass RowFixture.

        package MyColumnFixture;
        use base 'Test::C2FIT::ColumnFixture;'

        sub query {
         my $self = shift;
         return [ <your data> ];
        }

DESCRIPTION ^

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.

METHODS ^

query()

query() should return an arrayref consisting of either blessed objects (fields and methods are used) or unbessed hashrefs (only fields are used).

SEE ALSO ^

Extensive and up-to-date documentation on FIT can be found at: http://fit.c2.com/

syntax highlighting: