test_requires "Test::More" => 0.92;
test_requires "Test::Exception" => 0;
test_requires "Test::Warn" => 0;
+test_requires "Test::Deep" => '0.101';
test_requires "Storable" => 0; # for cloning in tests
no_index package => 'DBIx::Class::Storage::Debug::PrettyPrint';
use base qw/Test::Builder::Module Exporter/;
use Data::Dumper;
use Test::Builder;
+use Test::Deep ();
use SQL::Abstract::Tree;
our @EXPORT_OK = qw/&is_same_sql_bind &is_same_sql &is_same_bind
}
-sub eq_bind {
- my ($bind_ref1, $bind_ref2) = @_;
-
- local $Data::Dumper::Useqq = 1;
- local $Data::Dumper::Sortkeys = 1;
-
- return Dumper($bind_ref1) eq Dumper($bind_ref2);
-}
+sub eq_bind { goto &Test::Deep::eq_deeply };
sub eq_sql {
my ($sql1, $sql2) = @_;