NAME

Test::Deep::Teng::Row - Compare Teng::Row object by get_columns method in using Test::Deep

VERSION

This document describes Test::Deep::Teng::Row version 0.01.

SYNOPSIS

use Test::Deep;
use Test::Deep::Teng::Row;

cmp_deeply \@got_rows, +[ map { teng_row($_) } @expected_rows ];

DESCRIPTION

Test::Deep::Teng::Row support to compare Teng::Row object in using Test::Deep.

It is faild to compare got Teng::Row object to expected that is fetched by diffrent sql to got by is_deeply function. Because Teng::Row object has sql attribute that is used to fetch itself. So this module provide teng_row function for Test::Deep, and it compare by Teng::Row::get_columns method both got and expected.

INTERFACE

Functions

teng_row($expected)

$expected is Teng::Row object.

This function is exported by this module. It compares $got to $expected by Teng::Row::get_columns method.

DEPENDENCIES

Perl 5.8.1 or later.

BUGS

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

SEE ALSO

Test::Deep

AUTHOR

Soh Kitahara <sugarbabe335@gmail.com>

LICENSE AND COPYRIGHT

Copyright (c) 2012, Soh Kitahara. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.