Test::C2FIT::RowFixture - A RowFixture compares rows in the test data to objects


Test-C2FIT documentation  | view source Contained in the Test-C2FIT distribution.

Index


NAME

Top

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

Top

Normally, you subclass RowFixture.

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

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

DESCRIPTION

Top

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

Top

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

Top

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


Test-C2FIT documentation  | view source Contained in the Test-C2FIT distribution.