Test::C2FIT::GenericArrayAdapter - A type adapter capable of checking equality of two array-refs.


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

Index


NAME

Top

Test::C2FIT::GenericArrayAdapter - A type adapter capable of checking equality of two array-refs.

SYNOPSIS

Top

Typically, you instruct fit to use this TypeAdapter by following (where arrayColumn is the column heading):

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

	sub new {
	    my $pkg = shift;
	    return $pkg->SUPER::new( fieldColumnTypeMap => { 'arrayColumn' => 'Test::C2FIT::GenericArrayAdapter' } );
	}




DESCRIPTION

Top

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

Top

equals($a,$b)

Checks if the contents of the two given arrays are identical.

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.