use aliased 'DBIx::Class::ResultClass::HashRefInflator';
use String::TT qw(strip tt);
use Scalar::Util qw(blessed);
-use namespace::autoclean;
+use namespace::autoclean -also => [qw/argify qualify_with body_cols pk_cols names_of function_body arg_hash rule_body/];
our $VERSION = 0.01;
}
BEGIN {
-
+ # Helper methods
sub argify {
my @names = @_;
map '_' . $_, @names;
$function$ LANGUAGE plpgsql;
};
}
-}
-
-BEGIN {
sub arg_hash {
my $source = shift;
--- /dev/null
+use strict;
+use warnings;
+use lib 't/lib';
+use LoadTest;
+use Test::More qw(no_plan);
+use Devel::Dwarn;
+
+my $mti = LoadTest->source('Foo');
+
+isa_ok( $mti, "DBIx::Class::ResultSource::MultipleTableInheritance" );
+
+can_ok( $mti,
+ qw/new add_additional_parents add_additional_parent _source_by_name schema attach_additional_sources set_primary_key set_sequence raw_source_name raw_table_name add_columns add_relationship/
+);
+
+ok( !$mti->can($_), "My helper method $_ was removed" )
+ for
+ qw/argify qualify_with body_cols pk_cols names_of function_body arg_hash rule_body/;
+