Test::Deep::Teng::Row - Compare Teng::Row object by get_columns method in using Test::Deep
This document describes Test::Deep::Teng::Row version 0.01.
use Test::Deep; use Test::Deep::Teng::Row; cmp_deeply \@got_rows, +[ map { teng_row($_) } @expected_rows ];
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.
Test::Deep
Teng::Row::get_columns
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.
$got
$expected
Perl 5.8.1 or later.
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.
Soh Kitahara <sugarbabe335@gmail.com>
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.
To install Test::Deep::Teng::Row, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Deep::Teng::Row
CPAN shell
perl -MCPAN -e shell install Test::Deep::Teng::Row
For more information on module installation, please visit the detailed CPAN module installation guide.