fix POD coverage and t/backcompat/0.04006/23dumpmore.t
Rafael Kitover [Thu, 24 Dec 2009 09:24:08 +0000 (09:24 +0000)]
lib/DBIx/Class/Schema/Loader/Compat/v0_040.pm
lib/DBIx/Class/Schema/Loader/RelBuilder/Compat/v0_040.pm
t/backcompat/0.04006/20invocations.t
t/backcompat/0.04006/21misc_fatal.t
t/backcompat/0.04006/22dump.t
t/backcompat/0.04006/23dumpmore.t
t/backcompat/0.04006/lib/My/ResultBaseClass.pm [new file with mode: 0644]
t/backcompat/0.04006/lib/My/SchemaBaseClass.pm [new file with mode: 0644]

index 1af1647..2dca0f4 100644 (file)
@@ -24,3 +24,15 @@ sub _relbuilder {
 }
 
 1;
+
+=head1 NAME
+
+DBIx::Class::Schema::Loader::Compat::v0_040 - Compatibility for DBIx::Class::Schema::Loader
+version 0.04006
+
+=head1 DESCRIPTION
+
+Dumps from the old version are auto-detected, and the compat layer is turned
+on. See also L<DBIx::Class::Schema::Loader::Base/namingg>.
+
+=cut
index 3d12a25..63e2a14 100644 (file)
@@ -30,5 +30,15 @@ sub _remote_relname {
     return $remote_relname;
 }
 
-
 1;
+
+=head1 NAME
+
+DBIx::Class::Schema::Loader::RelBuilder::Compat::v0_040 - RelBuilder for
+compatibility with DBIx::Class::Schema::Loader version 0.04006
+
+=head1 DESCRIPTION
+
+Loaded by L<DBIx::Class::Schema::Loader::Compat::v0_040>.
+
+=cut
index 7b9944a..bd8850b 100644 (file)
@@ -2,11 +2,10 @@ use strict;
 use Test::More;
 use lib qw(t/backcompat/0.04006/lib);
 use make_dbictest_db;
-use Test::More;
+
 plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
     unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
 
-
 # Takes a $schema as input, runs 4 basic tests
 sub test_schema {
     my ($testname, $schema) = @_;
index a0db0eb..9720347 100644 (file)
@@ -2,7 +2,6 @@ use strict;
 use Test::More;
 use lib qw(t/backcompat/0.04006/lib);
 use make_dbictest_db;
-use Test::More;
 plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
     unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
 
index 0394101..d067a60 100644 (file)
@@ -3,11 +3,10 @@ use Test::More;
 use lib qw(t/backcompat/0.04006/lib);
 use File::Path;
 use make_dbictest_db;
-use Test::More;
+
 plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
     unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
 
-
 my $dump_path = './t/_dump';
 
 {
index b4681b3..2d14615 100644 (file)
@@ -4,14 +4,12 @@ use lib qw(t/backcompat/0.04006/lib);
 use File::Path;
 use make_dbictest_db;
 require DBIx::Class::Schema::Loader;
-use Test::More;
+
 plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
     unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
 
-
-$^O eq 'MSWin32'
-    ? plan(skip_all => "ActiveState perl produces additional warnings, and this test uses unix paths")
-    : plan(tests => 85);
+$^O eq 'MSWin32' && plan skip_all =>
+"Win32 perl produces additional warnings, and this test uses unix paths";
 
 my $DUMP_PATH = './t/_dump';
 
@@ -270,4 +268,6 @@ do_dump_test(
     },
 );
 
+done_testing;
+
 END { rmtree($DUMP_PATH, 1, 1); }
diff --git a/t/backcompat/0.04006/lib/My/ResultBaseClass.pm b/t/backcompat/0.04006/lib/My/ResultBaseClass.pm
new file mode 100644 (file)
index 0000000..e246321
--- /dev/null
@@ -0,0 +1,5 @@
+package My::ResultBaseClass;
+
+use base 'DBIx::Class::Core';
+
+1;
diff --git a/t/backcompat/0.04006/lib/My/SchemaBaseClass.pm b/t/backcompat/0.04006/lib/My/SchemaBaseClass.pm
new file mode 100644 (file)
index 0000000..7670d97
--- /dev/null
@@ -0,0 +1,5 @@
+package My::SchemaBaseClass;
+
+use base 'DBIx::Class::Schema';
+
+1;