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

NAME

Test::C2FIT::Fixture - Base class of all fixtures. A fixture checks examples in a table (of the input document) by running the actual program. Typically you neither use this class directly, nor subclass it directly.

SYNOPSIS

DESCRIPTION

When your data is not stored as string, then you'll propably need an TypeAdapter. Either you fill an appropriate hash while instantiating a Fixture, or you overload an appropriate method.

METHODS

suggestFieldType($columnName)

Returns a fully qualified package/classname of a TypeAdapter suitable for parsing/checking of cell entries of the column named "$columnName".

Default implementation uses a lookup in the instance's fieldColumnTypeMap hash. Will be used in ColumnFixture, RowFixture and setter parameter of an ActionFixture.

suggestMethodResultType($methodName)

Used in all Fixtures. Returns a fully qualified package/classname of a TypeAdapter suitable for parsing cell entries of the column named "$methodName" and checking them to return values of the method $methodName().

suggestMethodParamType($methodName)

Used in ActionFixture for setter-type methods. Returns a fully qualified package/classname of a TypeAdapter suitable for parsing cell entries following a cell with the content of $methodName.

SEE ALSO

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