First stab at restructuring with tests_recursive() - no functional changes
Peter Rabbitson [Sun, 25 Jan 2009 10:09:41 +0000 (10:09 +0000)]
69 files changed:
Makefile.PL
examples/Schema/MyDatabase/Main.pm [moved from t/examples/Schema/MyDatabase/Main.pm with 100% similarity]
examples/Schema/MyDatabase/Main/Result/Artist.pm [moved from t/examples/Schema/MyDatabase/Main/Result/Artist.pm with 100% similarity]
examples/Schema/MyDatabase/Main/Result/Cd.pm [moved from t/examples/Schema/MyDatabase/Main/Result/Cd.pm with 100% similarity]
examples/Schema/MyDatabase/Main/Result/Track.pm [moved from t/examples/Schema/MyDatabase/Main/Result/Track.pm with 100% similarity]
examples/Schema/db/example.sql [moved from t/examples/Schema/db/example.sql with 100% similarity]
examples/Schema/insertdb.pl [moved from t/examples/Schema/insertdb.pl with 100% similarity]
examples/Schema/testdb.pl [moved from t/examples/Schema/testdb.pl with 100% similarity]
t/cdbi/01-columns.t [moved from t/cdbi-t/01-columns.t with 100% similarity]
t/cdbi/02-Film.t [moved from t/cdbi-t/02-Film.t with 99% similarity]
t/cdbi/03-subclassing.t [moved from t/cdbi-t/03-subclassing.t with 97% similarity]
t/cdbi/04-lazy.t [moved from t/cdbi-t/04-lazy.t with 99% similarity]
t/cdbi/06-hasa.t [moved from t/cdbi-t/06-hasa.t with 99% similarity]
t/cdbi/08-inheritcols.t [moved from t/cdbi-t/08-inheritcols.t with 96% similarity]
t/cdbi/09-has_many.t [moved from t/cdbi-t/09-has_many.t with 99% similarity]
t/cdbi/11-triggers.t [moved from t/cdbi-t/11-triggers.t with 98% similarity]
t/cdbi/12-filter.t [moved from t/cdbi-t/12-filter.t with 99% similarity]
t/cdbi/13-constraint.t [moved from t/cdbi-t/13-constraint.t with 99% similarity]
t/cdbi/14-might_have.t [moved from t/cdbi-t/14-might_have.t with 98% similarity]
t/cdbi/15-accessor.t [moved from t/cdbi-t/15-accessor.t with 99% similarity]
t/cdbi/16-reserved.t [moved from t/cdbi-t/16-reserved.t with 96% similarity]
t/cdbi/18-has_a.t [moved from t/cdbi-t/18-has_a.t with 99% similarity]
t/cdbi/19-set_sql.t [moved from t/cdbi-t/19-set_sql.t with 99% similarity]
t/cdbi/21-iterator.t [moved from t/cdbi-t/21-iterator.t with 99% similarity]
t/cdbi/22-deflate_order.t [moved from t/cdbi-t/22-deflate_order.t with 93% similarity]
t/cdbi/22-self_referential.t [moved from t/cdbi-t/22-self_referential.t with 92% similarity]
t/cdbi/23-cascade.t [moved from t/cdbi-t/23-cascade.t with 98% similarity]
t/cdbi/24-meta_info.t [moved from t/cdbi-t/24-meta_info.t with 98% similarity]
t/cdbi/26-mutator.t [moved from t/cdbi-t/26-mutator.t with 96% similarity]
t/cdbi/30-pager.t [moved from t/cdbi-t/30-pager.t with 93% similarity]
t/cdbi/68-inflate_has_a.t [moved from t/cdbi-t/68-inflate_has_a.t with 100% similarity]
t/cdbi/98-failure.t [moved from t/cdbi-t/98-failure.t with 98% similarity]
t/cdbi/DeepAbstractSearch/01_search.t [moved from t/cdbi-DeepAbstractSearch/01_search.t with 99% similarity]
t/cdbi/abstract/search_where.t [moved from t/cdbi-abstract/search_where.t with 98% similarity]
t/cdbi/columns_as_hashes.t [moved from t/cdbi-t/columns_as_hashes.t with 98% similarity]
t/cdbi/columns_dont_override_custom_accessors.t [moved from t/cdbi-t/columns_dont_override_custom_accessors.t with 97% similarity]
t/cdbi/construct.t [moved from t/cdbi-t/construct.t with 95% similarity]
t/cdbi/copy.t [moved from t/cdbi-t/copy.t with 94% similarity]
t/cdbi/early_column_heisenbug.t [moved from t/cdbi-t/early_column_heisenbug.t with 100% similarity]
t/cdbi/has_many_loads_foreign_class.t [moved from t/cdbi-t/has_many_loads_foreign_class.t with 96% similarity]
t/cdbi/hasa_without_loading.t [moved from t/cdbi-t/hasa_without_loading.t with 95% similarity]
t/cdbi/max_min_value_of.t [moved from t/cdbi-t/max_min_value_of.t with 94% similarity]
t/cdbi/mk_group_accessors.t [moved from t/cdbi-t/mk_group_accessors.t with 96% similarity]
t/cdbi/multi_column_set.t [moved from t/cdbi-t/multi_column_set.t with 96% similarity]
t/cdbi/object_cache.t [moved from t/cdbi-t/object_cache.t with 98% similarity]
t/cdbi/retrieve_from_sql_with_limit.t [moved from t/cdbi-t/retrieve_from_sql_with_limit.t with 93% similarity]
t/cdbi/set_to_undef.t [moved from t/cdbi-t/set_to_undef.t with 97% similarity]
t/cdbi/set_vs_DateTime.t [moved from t/cdbi-t/set_vs_DateTime.t with 96% similarity]
t/cdbi/sweet/08pager.t [moved from t/cdbi-sweet-t/08pager.t with 100% similarity]
t/cdbi/testlib/Actor.pm [moved from t/testlib/Actor.pm with 93% similarity]
t/cdbi/testlib/ActorAlias.pm [moved from t/testlib/ActorAlias.pm with 86% similarity]
t/cdbi/testlib/Binary.pm [moved from t/testlib/Binary.pm with 87% similarity]
t/cdbi/testlib/Blurb.pm [moved from t/testlib/Blurb.pm with 89% similarity]
t/cdbi/testlib/CDBase.pm [moved from t/testlib/CDBase.pm with 100% similarity]
t/cdbi/testlib/Director.pm [moved from t/testlib/Director.pm with 89% similarity]
t/cdbi/testlib/Film.pm [moved from t/testlib/Film.pm with 95% similarity]
t/cdbi/testlib/Lazy.pm [moved from t/testlib/Lazy.pm with 92% similarity]
t/cdbi/testlib/Log.pm [moved from t/testlib/Log.pm with 94% similarity]
t/cdbi/testlib/MyBase.pm [moved from t/testlib/MyBase.pm with 100% similarity]
t/cdbi/testlib/MyFilm.pm [moved from t/testlib/MyFilm.pm with 91% similarity]
t/cdbi/testlib/MyFoo.pm [moved from t/testlib/MyFoo.pm with 93% similarity]
t/cdbi/testlib/MyStar.pm [moved from t/testlib/MyStar.pm with 90% similarity]
t/cdbi/testlib/MyStarLink.pm [moved from t/testlib/MyStarLink.pm with 90% similarity]
t/cdbi/testlib/MyStarLinkMCPK.pm [moved from t/testlib/MyStarLinkMCPK.pm with 93% similarity]
t/cdbi/testlib/Order.pm [moved from t/testlib/Order.pm with 89% similarity]
t/cdbi/testlib/OtherFilm.pm [moved from t/testlib/OtherFilm.pm with 100% similarity]
t/cdbi/testlib/OtherThing.pm [moved from t/testlib/OtherThing.pm with 100% similarity]
t/cdbi/testlib/PgBase.pm [moved from t/testlib/PgBase.pm with 100% similarity]
t/cdbi/testlib/Thing.pm [moved from t/testlib/Thing.pm with 100% similarity]

index 351dcaa..ab1aec3 100644 (file)
@@ -37,7 +37,7 @@ test_requires 'Test::Deep'          => 0;
 
 install_script 'script/dbicadmin';
 
-tests "t/*.t t/*/*.t";
+tests_recursive 't';
 
 # re-build README and require CDBI modules for testing if we're in a checkout
 
similarity index 100%
rename from t/cdbi-t/01-columns.t
rename to t/cdbi/01-columns.t
similarity index 99%
rename from t/cdbi-t/02-Film.t
rename to t/cdbi/02-Film.t
index bd42d6e..988951d 100644 (file)
@@ -13,7 +13,7 @@ BEGIN {
 }
 
 INIT {
-       use lib 't/testlib';
+       use lib 't/cdbi/testlib';
        use Film;
 }
 
similarity index 97%
rename from t/cdbi-t/03-subclassing.t
rename to t/cdbi/03-subclassing.t
index 9dc689b..1740de3 100644 (file)
@@ -15,7 +15,7 @@ BEGIN {
   plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 6);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Film;
 
 INIT { @Film::Threat::ISA = qw/Film/; }
similarity index 99%
rename from t/cdbi-t/04-lazy.t
rename to t/cdbi/04-lazy.t
index 7b5a24c..bb1f288 100644 (file)
@@ -19,7 +19,7 @@ BEGIN {
 }
 
 INIT {
-       use lib 't/testlib';
+       use lib 't/cdbi/testlib';
        use Lazy;
 }
 
similarity index 99%
rename from t/cdbi-t/06-hasa.t
rename to t/cdbi/06-hasa.t
index 56a1f86..cd27ab6 100644 (file)
@@ -16,7 +16,7 @@ BEGIN {
 #local $SIG{__WARN__} = sub { };
 
 INIT {
-       use lib 't/testlib';
+       use lib 't/cdbi/testlib';
        use Film;
        use Director;
 }
similarity index 96%
rename from t/cdbi-t/08-inheritcols.t
rename to t/cdbi/08-inheritcols.t
index af29424..83d1fee 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 
similarity index 99%
rename from t/cdbi-t/09-has_many.t
rename to t/cdbi/09-has_many.t
index 28fa55e..0c1c845 100644 (file)
@@ -10,7 +10,7 @@ BEGIN {
 }
 
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Film;
 use Actor;
 Actor->has_a(Film => 'Film');
similarity index 98%
rename from t/cdbi-t/11-triggers.t
rename to t/cdbi/11-triggers.t
index f25957c..efab875 100644 (file)
@@ -11,7 +11,7 @@ BEGIN {
   plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 13);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Film;
 
 sub create_trigger2 { ::ok(1, "Running create trigger 2"); }
similarity index 99%
rename from t/cdbi-t/12-filter.t
rename to t/cdbi/12-filter.t
index 979ad56..e82b579 100644 (file)
@@ -11,7 +11,7 @@ BEGIN {
   plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 50);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Actor;
 use Film;
 Film->has_many(actors                => 'Actor');
similarity index 99%
rename from t/cdbi-t/13-constraint.t
rename to t/cdbi/13-constraint.t
index 7f84161..7cdecb5 100644 (file)
@@ -11,7 +11,7 @@ BEGIN {
   plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 23);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Film;
 
 sub valid_rating {
similarity index 98%
rename from t/cdbi-t/14-might_have.t
rename to t/cdbi/14-might_have.t
index febdd70..b309edc 100644 (file)
@@ -11,7 +11,7 @@ BEGIN {
   plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 22);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Film;
 use Blurb;
 
similarity index 99%
rename from t/cdbi-t/15-accessor.t
rename to t/cdbi/15-accessor.t
index b487cc6..72f2c54 100644 (file)
@@ -14,7 +14,7 @@ BEGIN {
 INIT {
     #local $SIG{__WARN__} =
         #sub { like $_[0], qr/clashes with built-in method/, $_[0] };
-    use lib 't/testlib';
+    use lib 't/cdbi/testlib';
     require Film;
     require Actor;
     require Director;
similarity index 96%
rename from t/cdbi-t/16-reserved.t
rename to t/cdbi/16-reserved.t
index 2973ce1..67693a0 100644 (file)
@@ -11,7 +11,7 @@ BEGIN {
   plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 5);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 require Film;
 require Order;
 
similarity index 99%
rename from t/cdbi-t/18-has_a.t
rename to t/cdbi/18-has_a.t
index ca7786e..e49c4d8 100644 (file)
@@ -11,7 +11,7 @@ BEGIN {
   plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 41);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Film;
 use Director;
 @YA::Film::ISA = 'Film';
similarity index 99%
rename from t/cdbi-t/19-set_sql.t
rename to t/cdbi/19-set_sql.t
index f725c89..eb464a3 100644 (file)
@@ -11,7 +11,7 @@ BEGIN {
   plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 20);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Film;
 use Actor;
 
similarity index 99%
rename from t/cdbi-t/21-iterator.t
rename to t/cdbi/21-iterator.t
index d524423..c5717c7 100644 (file)
@@ -11,7 +11,7 @@ BEGIN {
   plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 37);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Film;
 
 my $it_class = "DBIx::Class::ResultSet";
similarity index 93%
rename from t/cdbi-t/22-deflate_order.t
rename to t/cdbi/22-deflate_order.t
index d813b19..9d943e5 100644 (file)
@@ -12,7 +12,7 @@ if ($@) {
 eval { require Time::Piece::MySQL };
 plan skip_all => "Need Time::Piece::MySQL for this test" if $@;
 
-eval { require 't/testlib/Log.pm' };
+eval { require 't/cdbi/testlib/Log.pm' };
 plan skip_all => "Need MySQL for this test" if $@;
 
 plan tests => 2;
similarity index 92%
rename from t/cdbi-t/22-self_referential.t
rename to t/cdbi/22-self_referential.t
index c937746..91fcb7f 100644 (file)
@@ -1,25 +1,25 @@
-use Test::More;\r
-\r
-BEGIN {\r
-  eval "use DBIx::Class::CDBICompat;";\r
-  plan $@ ? (skip_all => 'Class::Trigger and DBIx::ContextualFetch required') : (tests=> 2);\r
-}\r
-\r
-use strict;\r
-\r
-use lib 't/testlib';\r
-use Actor;\r
-use ActorAlias;\r
-Actor->has_many( aliases => [ 'ActorAlias' => 'alias' ] );\r
-\r
-my $first  = Actor->create( { Name => 'First' } );\r
-my $second = Actor->create( { Name => 'Second' } );\r
-\r
-ActorAlias->create( { actor => $first, alias => $second } );\r
-\r
-my @aliases = $first->aliases;\r
-\r
-is( scalar @aliases, 1, 'proper number of aliases' );\r
-is( $aliases[ 0 ]->name, 'Second', 'proper alias' );\r
-\r
-\r
+use Test::More;
+
+BEGIN {
+  eval "use DBIx::Class::CDBICompat;";
+  plan $@ ? (skip_all => 'Class::Trigger and DBIx::ContextualFetch required') : (tests=> 2);
+}
+
+use strict;
+
+use lib 't/cdbi/testlib';
+use Actor;
+use ActorAlias;
+Actor->has_many( aliases => [ 'ActorAlias' => 'alias' ] );
+
+my $first  = Actor->create( { Name => 'First' } );
+my $second = Actor->create( { Name => 'Second' } );
+
+ActorAlias->create( { actor => $first, alias => $second } );
+
+my @aliases = $first->aliases;
+
+is( scalar @aliases, 1, 'proper number of aliases' );
+is( $aliases[ 0 ]->name, 'Second', 'proper alias' );
+
+
similarity index 98%
rename from t/cdbi-t/23-cascade.t
rename to t/cdbi/23-cascade.t
index af8689b..a681882 100644 (file)
@@ -13,7 +13,7 @@ BEGIN {
 }
 
 INIT {
-    use lib 't/testlib';
+    use lib 't/cdbi/testlib';
     use Film;
     use Director;
 }
similarity index 98%
rename from t/cdbi-t/24-meta_info.t
rename to t/cdbi/24-meta_info.t
index 2545111..7a269bd 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 
similarity index 96%
rename from t/cdbi-t/26-mutator.t
rename to t/cdbi/26-mutator.t
index 1eeea25..5a1cf8f 100644 (file)
@@ -14,7 +14,7 @@ BEGIN {
                : (tests => 6);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 require Film;
 
 sub Film::accessor_name_for {
similarity index 93%
rename from t/cdbi-t/30-pager.t
rename to t/cdbi/30-pager.t
index 31e43dc..2a90bfd 100644 (file)
@@ -1,52 +1,52 @@
-use strict;\r
-use Test::More;\r
-\r
-BEGIN {\r
-  eval "use DBIx::Class::CDBICompat;";\r
-  if ($@) {\r
-    plan (skip_all => 'Class::Trigger and DBIx::ContextualFetch required');\r
-    next;\r
-  }\r
-  eval "use DBD::SQLite";\r
-  plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 6);\r
-}\r
-\r
-use lib 't/testlib';\r
-use Film;\r
-\r
-my @film  = (\r
-       Film->create({ Title => 'Film 1' }),\r
-       Film->create({ Title => 'Film 2' }),\r
-       Film->create({ Title => 'Film 3' }),\r
-       Film->create({ Title => 'Film 4' }),\r
-       Film->create({ Title => 'Film 5' }),\r
-);\r
-\r
-# first page\r
-my ( $pager, $it ) = Film->page(\r
-    {},\r
-    { rows => 3,\r
-      page => 1 }\r
-);\r
-\r
-is( $pager->entries_on_this_page, 3, "entries_on_this_page ok" );\r
-\r
-is( $pager->next_page, 2, "next_page ok" );\r
-\r
-is( $it->next->title, "Film 1", "iterator->next ok" );\r
-\r
-$it->next;\r
-$it->next;\r
-\r
-is( $it->next, undef, "next past end of page ok" );\r
-\r
-# second page\r
-( $pager, $it ) = Film->page( \r
-    {},\r
-    { rows => 3,\r
-      page => 2 }\r
-);\r
-\r
-is( $pager->entries_on_this_page, 2, "entries on second page ok" );\r
-\r
-is( $it->next->title, "Film 4", "second page first title ok" );\r
+use strict;
+use Test::More;
+
+BEGIN {
+  eval "use DBIx::Class::CDBICompat;";
+  if ($@) {
+    plan (skip_all => 'Class::Trigger and DBIx::ContextualFetch required');
+    next;
+  }
+  eval "use DBD::SQLite";
+  plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 6);
+}
+
+use lib 't/cdbi/testlib';
+use Film;
+
+my @film  = (
+       Film->create({ Title => 'Film 1' }),
+       Film->create({ Title => 'Film 2' }),
+       Film->create({ Title => 'Film 3' }),
+       Film->create({ Title => 'Film 4' }),
+       Film->create({ Title => 'Film 5' }),
+);
+
+# first page
+my ( $pager, $it ) = Film->page(
+    {},
+    { rows => 3,
+      page => 1 }
+);
+
+is( $pager->entries_on_this_page, 3, "entries_on_this_page ok" );
+
+is( $pager->next_page, 2, "next_page ok" );
+
+is( $it->next->title, "Film 1", "iterator->next ok" );
+
+$it->next;
+$it->next;
+
+is( $it->next, undef, "next past end of page ok" );
+
+# second page
+( $pager, $it ) = Film->page( 
+    {},
+    { rows => 3,
+      page => 2 }
+);
+
+is( $pager->entries_on_this_page, 2, "entries on second page ok" );
+
+is( $it->next->title, "Film 4", "second page first title ok" );
similarity index 98%
rename from t/cdbi-t/98-failure.t
rename to t/cdbi/98-failure.t
index 4521b9a..9217342 100644 (file)
@@ -15,7 +15,7 @@ BEGIN {
   plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 7);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Film;
 
 Film->create_test_film;
similarity index 99%
rename from t/cdbi-DeepAbstractSearch/01_search.t
rename to t/cdbi/DeepAbstractSearch/01_search.t
index 6826bb9..3db333e 100755 (executable)
@@ -17,7 +17,7 @@ BEGIN {
     plan tests => 19;
 }
 
-my $DB  = "t/testdb";
+my $DB  = "t/var/cdbi_testdb";
 unlink $DB if -e $DB;
 
 my @DSN = ("dbi:SQLite:dbname=$DB", '', '', { AutoCommit => 0 });
similarity index 98%
rename from t/cdbi-abstract/search_where.t
rename to t/cdbi/abstract/search_where.t
index 3a89e3c..52595e2 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use Test::More;
 
 use strict;
@@ -16,7 +14,7 @@ BEGIN {
 }
 
 INIT {
-       use lib 't/testlib';
+       use lib 't/cdbi/testlib';
        use Film;
 }
 
similarity index 98%
rename from t/cdbi-t/columns_as_hashes.t
rename to t/cdbi/columns_as_hashes.t
index f85f50f..9ae1976 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 use Test::Warn;
@@ -10,7 +8,7 @@ BEGIN {
           : ('no_plan');
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Film;
 
 my $waves = Film->insert({
similarity index 95%
rename from t/cdbi-t/construct.t
rename to t/cdbi/construct.t
index e824b06..1ee7f14 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 
@@ -10,7 +8,7 @@ BEGIN {
 }
 
 INIT {
-    use lib 't/testlib';
+    use lib 't/cdbi/testlib';
     use Film;
 }
 
similarity index 94%
rename from t/cdbi-t/copy.t
rename to t/cdbi/copy.t
index cdcae15..25eb255 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 
@@ -10,7 +8,7 @@ BEGIN {
 }
 
 INIT {
-    use lib 't/testlib';
+    use lib 't/cdbi/testlib';
 }
 
 {
similarity index 96%
rename from t/cdbi-t/has_many_loads_foreign_class.t
rename to t/cdbi/has_many_loads_foreign_class.t
index 9ab5c25..f6b30e7 100644 (file)
@@ -10,7 +10,7 @@ BEGIN {
 }
 
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Director;
 
 # Test that has_many() will load the foreign class.
similarity index 95%
rename from t/cdbi-t/hasa_without_loading.t
rename to t/cdbi/hasa_without_loading.t
index a6188c2..073ef3e 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 
similarity index 94%
rename from t/cdbi-t/max_min_value_of.t
rename to t/cdbi/max_min_value_of.t
index f4a0bda..4b23608 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 
@@ -17,7 +15,7 @@ BEGIN {
   plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 2);
 }
 
-use lib 't/testlib';
+use lib 't/cdbi/testlib';
 use Film;
 
 Film->create({
similarity index 96%
rename from t/cdbi-t/mk_group_accessors.t
rename to t/cdbi/mk_group_accessors.t
index 3a04ff5..7c5ce67 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 
@@ -14,7 +12,7 @@ BEGIN {
 }
 
 INIT {
-    use lib 't/testlib';
+    use lib 't/cdbi/testlib';
     require Film;
 }
 
similarity index 96%
rename from t/cdbi-t/multi_column_set.t
rename to t/cdbi/multi_column_set.t
index eb985e3..4311456 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 
similarity index 98%
rename from t/cdbi-t/object_cache.t
rename to t/cdbi/object_cache.t
index 295bde6..896f8eb 100644 (file)
@@ -13,7 +13,7 @@ BEGIN {
 }
 
 INIT {
-    use lib 't/testlib';
+    use lib 't/cdbi/testlib';
     use Film;
 }
 
similarity index 93%
rename from t/cdbi-t/retrieve_from_sql_with_limit.t
rename to t/cdbi/retrieve_from_sql_with_limit.t
index e0c452d..70a6128 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 
@@ -10,7 +8,7 @@ BEGIN {
 }
 
 INIT {
-    use lib 't/testlib';
+    use lib 't/cdbi/testlib';
     use Film;
 }
 
similarity index 97%
rename from t/cdbi-t/set_to_undef.t
rename to t/cdbi/set_to_undef.t
index 792c55e..83cf1a2 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 
similarity index 96%
rename from t/cdbi-t/set_vs_DateTime.t
rename to t/cdbi/set_vs_DateTime.t
index fb76561..7dd17ce 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl -w
-
 use strict;
 use Test::More;
 use Test::Exception;
similarity index 93%
rename from t/testlib/Actor.pm
rename to t/cdbi/testlib/Actor.pm
index 1659be2..4e27abe 100644 (file)
@@ -1,8 +1,6 @@
 package # hide from PAUSE 
     Actor;
 
-BEGIN { unshift @INC, './t/testlib'; }
-
 use strict;
 use warnings;
 
similarity index 86%
rename from t/testlib/ActorAlias.pm
rename to t/cdbi/testlib/ActorAlias.pm
index 90e3042..ba38551 100644 (file)
@@ -1,27 +1,25 @@
-package # hide from PAUSE \r
-    ActorAlias;\r
-\r
-BEGIN { unshift @INC, './t/testlib'; }\r
-\r
-use strict;\r
-use warnings;\r
-\r
-use base 'DBIx::Class::Test::SQLite';\r
-\r
-__PACKAGE__->set_table( 'ActorAlias' );\r
-\r
-__PACKAGE__->columns( Primary => 'id' );\r
-__PACKAGE__->columns( All     => qw/ actor alias / );\r
-__PACKAGE__->has_a( actor => 'Actor' );\r
-__PACKAGE__->has_a( alias => 'Actor' );\r
-\r
-sub create_sql {\r
-       return qq{\r
-               id    INTEGER PRIMARY KEY,\r
-               actor INTEGER,\r
-               alias INTEGER\r
-       }\r
-}\r
-\r
-1;\r
-\r
+package # hide from PAUSE 
+    ActorAlias;
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class::Test::SQLite';
+
+__PACKAGE__->set_table( 'ActorAlias' );
+
+__PACKAGE__->columns( Primary => 'id' );
+__PACKAGE__->columns( All     => qw/ actor alias / );
+__PACKAGE__->has_a( actor => 'Actor' );
+__PACKAGE__->has_a( alias => 'Actor' );
+
+sub create_sql {
+       return qq{
+               id    INTEGER PRIMARY KEY,
+               actor INTEGER,
+               alias INTEGER
+       }
+}
+
+1;
+
similarity index 87%
rename from t/testlib/Binary.pm
rename to t/cdbi/testlib/Binary.pm
index 10ba5b1..58d2bf4 100644 (file)
@@ -1,8 +1,6 @@
 package # hide from PAUSE
     Binary;
 
-BEGIN { unshift @INC, './t/testlib'; }
-
 use strict;
 use base 'PgBase';
 
similarity index 89%
rename from t/testlib/Blurb.pm
rename to t/cdbi/testlib/Blurb.pm
index 4f4baf0..a112f47 100644 (file)
@@ -1,8 +1,6 @@
 package # hide from PAUSE
     Blurb;
 
-BEGIN { unshift @INC, './t/testlib'; }
-
 use strict;
 use base 'DBIx::Class::Test::SQLite';
 
similarity index 100%
rename from t/testlib/CDBase.pm
rename to t/cdbi/testlib/CDBase.pm
similarity index 89%
rename from t/testlib/Director.pm
rename to t/cdbi/testlib/Director.pm
index b19a44a..af0a453 100644 (file)
@@ -1,8 +1,6 @@
 package # hide from PAUSE 
     Director;
 
-BEGIN { unshift @INC, './t/testlib'; }
-
 use strict;
 use base 'DBIx::Class::Test::SQLite';
 
similarity index 95%
rename from t/testlib/Film.pm
rename to t/cdbi/testlib/Film.pm
index 459015f..6521a59 100644 (file)
@@ -1,7 +1,6 @@
 package # hide from PAUSE 
     Film;
 
-BEGIN { unshift @INC, './t/testlib'; }
 use base 'DBIx::Class::Test::SQLite';
 use strict;
 
similarity index 92%
rename from t/testlib/Lazy.pm
rename to t/cdbi/testlib/Lazy.pm
index b30c34b..2b2137e 100644 (file)
@@ -1,7 +1,6 @@
 package # hide from PAUSE 
     Lazy;
 
-BEGIN { unshift @INC, './t/testlib'; }
 use base 'DBIx::Class::Test::SQLite';
 use strict;
 
similarity index 94%
rename from t/testlib/Log.pm
rename to t/cdbi/testlib/Log.pm
index 33672b5..b521e5e 100644 (file)
@@ -1,7 +1,6 @@
 package # hide from PAUSE 
     Log;
 
-BEGIN { unshift @INC, './t/testlib'; }
 use base 'MyBase';
 
 use strict;
similarity index 100%
rename from t/testlib/MyBase.pm
rename to t/cdbi/testlib/MyBase.pm
similarity index 91%
rename from t/testlib/MyFilm.pm
rename to t/cdbi/testlib/MyFilm.pm
index e0abf44..d0ae5f8 100644 (file)
@@ -1,7 +1,6 @@
 package # hide from PAUSE 
     MyFilm;
 
-BEGIN { unshift @INC, './t/testlib'; }
 use base 'MyBase';
 use MyStarLink;
 
similarity index 93%
rename from t/testlib/MyFoo.pm
rename to t/cdbi/testlib/MyFoo.pm
index d645d3d..dd387e2 100644 (file)
@@ -1,7 +1,6 @@
 package # hide from PAUSE 
     MyFoo;
 
-BEGIN { unshift @INC, './t/testlib'; }
 use base 'MyBase';
 
 use strict;
similarity index 90%
rename from t/testlib/MyStar.pm
rename to t/cdbi/testlib/MyStar.pm
index f053d1c..22c1544 100644 (file)
@@ -1,7 +1,6 @@
 package # hide from PAUSE 
     MyStar;
 
-BEGIN { unshift @INC, './t/testlib'; }
 use base 'MyBase';
 
 use strict;
similarity index 90%
rename from t/testlib/MyStarLink.pm
rename to t/cdbi/testlib/MyStarLink.pm
index 74a835c..143c2f4 100644 (file)
@@ -1,7 +1,6 @@
 package # hide from PAUSE 
     MyStarLink;
 
-BEGIN { unshift @INC, './t/testlib'; }
 use base 'MyBase';
 
 use strict;
similarity index 93%
rename from t/testlib/MyStarLinkMCPK.pm
rename to t/cdbi/testlib/MyStarLinkMCPK.pm
index 3e74a5b..dfc3ff2 100644 (file)
@@ -1,7 +1,6 @@
 package # hide from PAUSE 
     MyStarLinkMCPK;
 
-BEGIN { unshift @INC, './t/testlib'; }
 use base 'MyBase';
 
 use MyStar;
similarity index 89%
rename from t/testlib/Order.pm
rename to t/cdbi/testlib/Order.pm
index 009e10e..703005d 100644 (file)
@@ -1,8 +1,6 @@
 package # hide from PAUSE 
     Order;
 
-BEGIN { unshift @INC, './t/testlib'; }
-
 use strict;
 use base 'DBIx::Class::Test::SQLite';
 
similarity index 100%
rename from t/testlib/PgBase.pm
rename to t/cdbi/testlib/PgBase.pm
similarity index 100%
rename from t/testlib/Thing.pm
rename to t/cdbi/testlib/Thing.pm