[Bast-commits] r3236 - in trunk/DBIx-Class-Validation: .
lib/DBIx/Class t t/lib t/lib/DBIC t/lib/DBIC/Test
t/lib/DBIC/Test/Schema t/sql
claco at dev.catalyst.perl.org
claco at dev.catalyst.perl.org
Sat May 5 17:24:37 GMT 2007
Author: claco
Date: 2007-05-05 17:24:35 +0100 (Sat, 05 May 2007)
New Revision: 3236
Modified:
trunk/DBIx-Class-Validation/Build.PL
trunk/DBIx-Class-Validation/Changes
trunk/DBIx-Class-Validation/MANIFEST.SKIP
trunk/DBIx-Class-Validation/Makefile.PL
trunk/DBIx-Class-Validation/README
trunk/DBIx-Class-Validation/lib/DBIx/Class/Validation.pm
trunk/DBIx-Class-Validation/t/fvs.t
trunk/DBIx-Class-Validation/t/lib/DBIC/Test.pm
trunk/DBIx-Class-Validation/t/lib/DBIC/Test/Schema.pm
trunk/DBIx-Class-Validation/t/lib/DBIC/Test/Schema/Test.pm
trunk/DBIx-Class-Validation/t/lib/Validator.pm
trunk/DBIx-Class-Validation/t/lib/ValidatorWithoutCheck.pm
trunk/DBIx-Class-Validation/t/manifest.t
trunk/DBIx-Class-Validation/t/pod_coverage.t
trunk/DBIx-Class-Validation/t/pod_syntax.t
trunk/DBIx-Class-Validation/t/sql/test.sqlite.sql
trunk/DBIx-Class-Validation/t/strict.t
trunk/DBIx-Class-Validation/t/style_no_tabs.t
trunk/DBIx-Class-Validation/t/warnings.t
Log:
Updated props
Property changes on: trunk/DBIx-Class-Validation/Build.PL
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Property changes on: trunk/DBIx-Class-Validation/Changes
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/MANIFEST.SKIP
===================================================================
--- trunk/DBIx-Class-Validation/MANIFEST.SKIP 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/MANIFEST.SKIP 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,17 +1,17 @@
-\bRCS\b
-\bCVS\b
-,v$
-\B\.svn\b
-t/var
-^blib/
-^pm_to_blib
-^MakeMaker-\d
-Makefile$
-Makefile.old$
-Build.PL
-Build.bat
-\.db
-t/TEST$
-t/SMOKE$
-^blibdirs\.ts
+\bRCS\b
+\bCVS\b
+,v$
+\B\.svn\b
+t/var
+^blib/
+^pm_to_blib
+^MakeMaker-\d
+Makefile$
+Makefile.old$
+Build.PL
+Build.bat
+\.db
+t/TEST$
+t/SMOKE$
+^blibdirs\.ts
\.gz
\ No newline at end of file
Property changes on: trunk/DBIx-Class-Validation/MANIFEST.SKIP
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Property changes on: trunk/DBIx-Class-Validation/Makefile.PL
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/README
===================================================================
--- trunk/DBIx-Class-Validation/README 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/README 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,101 +1,101 @@
-NAME
- DBIx::Class::Validation - Validate all data before submitting to your
- database.
-
-SYNOPSIS
- In your base "DBIx::Class" package:
-
- __PACKAGE__->load_components(qw/... Validation/);
-
- And in your subclasses:
-
- __PACKAGE__->validation(
- module => 'FormValidator::Simple',
- profile => { ... },
- filters => 0,
- auto => 1,
- );
-
- And then somewhere else:
-
- eval{ $obj->validate() };
- if( my $results = $EVAL_ERROR ){
- ...
- }
-
-METHODS
- validation
- __PACKAGE__->validation(
- module => 'FormValidator::Simple',
- profile => { ... },
- filters => 0,
- auto => 1,
- );
-
- Calls "validation_module", "validation_profile" and "validation_auto" if
- the corresponding argument is defined.
-
- validation_module
- __PACKAGE__->validation_module('Data::FormValidator');
-
- Sets the validation module to use. Any module that supports a check()
- method just like "Data::FormValidator"'s can be used here, such as
- "FormValidator::Simple".
-
- Defaults to FormValidator::Simple.
-
- validation_profile
- __PACKAGE__->validation_profile(
- { ... }
- );
-
- Sets the profile that will be passed to the validation module.
-
- validation_auto
- __PACKAGE__->validation_auto( 1 );
-
- Turns on and off auto-validation. This feature makes all UPDATEs and
- INSERTs call the "validate" method before doing anything.
-
- The default is for validation_auto is to be on.
-
- validation_filter
- __PACKAGE__->validation_filter( 1 );
-
- Turns on and off validation filters. When on, this feature will make all
- UPDATEs and INSERTs modify your data to that of the values returned by
- your validation modules "check" method. This is primarily meant for use
- with "Data::FormValidator" but may be used with any validation module
- that returns a results object that supports a "valid()" method just like
- "Data::FormValidator::Results".
-
- Filters modify your data, so use them carefully.
-
- The default is for validation_filter is to be off.
-
- validate
- $obj->validate();
-
- Validates all the data in the object against the pre-defined validation
- module and profile. If there is a problem then a hard error will be
- thrown. If you put the validation in an eval you can capture whatever
- the module's check() method returned.
-
-EXTENDED METHODS
- The following "DBIx::Class::Row" methods are extended by this module:-
-
- insert
- update
-
-SEE ALSO
- "DBIx::Class", "FormValidator::Simple", "Data::FormValidator"
-
-AUTHOR
- Aran C. Deltac <bluefeet at cpan.org>
-
-CONTRIBUTERS
- Tom Kirkpatrick <tkp at cpan.org> Christopher Laco <claco at cpan.org>
-
-LICENSE
- You may distribute this code under the same terms as Perl itself.
-
+NAME
+ DBIx::Class::Validation - Validate all data before submitting to your
+ database.
+
+SYNOPSIS
+ In your base "DBIx::Class" package:
+
+ __PACKAGE__->load_components(qw/... Validation/);
+
+ And in your subclasses:
+
+ __PACKAGE__->validation(
+ module => 'FormValidator::Simple',
+ profile => { ... },
+ filters => 0,
+ auto => 1,
+ );
+
+ And then somewhere else:
+
+ eval{ $obj->validate() };
+ if( my $results = $EVAL_ERROR ){
+ ...
+ }
+
+METHODS
+ validation
+ __PACKAGE__->validation(
+ module => 'FormValidator::Simple',
+ profile => { ... },
+ filters => 0,
+ auto => 1,
+ );
+
+ Calls "validation_module", "validation_profile" and "validation_auto" if
+ the corresponding argument is defined.
+
+ validation_module
+ __PACKAGE__->validation_module('Data::FormValidator');
+
+ Sets the validation module to use. Any module that supports a check()
+ method just like "Data::FormValidator"'s can be used here, such as
+ "FormValidator::Simple".
+
+ Defaults to FormValidator::Simple.
+
+ validation_profile
+ __PACKAGE__->validation_profile(
+ { ... }
+ );
+
+ Sets the profile that will be passed to the validation module.
+
+ validation_auto
+ __PACKAGE__->validation_auto( 1 );
+
+ Turns on and off auto-validation. This feature makes all UPDATEs and
+ INSERTs call the "validate" method before doing anything.
+
+ The default is for validation_auto is to be on.
+
+ validation_filter
+ __PACKAGE__->validation_filter( 1 );
+
+ Turns on and off validation filters. When on, this feature will make all
+ UPDATEs and INSERTs modify your data to that of the values returned by
+ your validation modules "check" method. This is primarily meant for use
+ with "Data::FormValidator" but may be used with any validation module
+ that returns a results object that supports a "valid()" method just like
+ "Data::FormValidator::Results".
+
+ Filters modify your data, so use them carefully.
+
+ The default is for validation_filter is to be off.
+
+ validate
+ $obj->validate();
+
+ Validates all the data in the object against the pre-defined validation
+ module and profile. If there is a problem then a hard error will be
+ thrown. If you put the validation in an eval you can capture whatever
+ the module's check() method returned.
+
+EXTENDED METHODS
+ The following "DBIx::Class::Row" methods are extended by this module:-
+
+ insert
+ update
+
+SEE ALSO
+ "DBIx::Class", "FormValidator::Simple", "Data::FormValidator"
+
+AUTHOR
+ Aran C. Deltac <bluefeet at cpan.org>
+
+CONTRIBUTERS
+ Tom Kirkpatrick <tkp at cpan.org> Christopher Laco <claco at cpan.org>
+
+LICENSE
+ You may distribute this code under the same terms as Perl itself.
+
Property changes on: trunk/DBIx-Class-Validation/README
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Property changes on: trunk/DBIx-Class-Validation/lib/DBIx/Class/Validation.pm
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/t/fvs.t
===================================================================
--- trunk/DBIx-Class-Validation/t/fvs.t 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/t/fvs.t 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,5 +1,5 @@
#!perl -wT
-# $Id: basic.t 3096 2007-02-09 20:58:19Z claco $
+# $Id$
use strict;
use warnings;
Property changes on: trunk/DBIx-Class-Validation/t/fvs.t
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/t/lib/DBIC/Test/Schema/Test.pm
===================================================================
--- trunk/DBIx-Class-Validation/t/lib/DBIC/Test/Schema/Test.pm 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/t/lib/DBIC/Test/Schema/Test.pm 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,32 +1,32 @@
-# $Id: Items.pm 3112 2007-03-05 23:04:49Z claco $
-package DBIC::Test::Schema::Test;
-use strict;
-use warnings;
-
-BEGIN {
- use base qw/DBIx::Class::Core/;
-};
-
-__PACKAGE__->load_components(qw/Validation PK::Auto Core/);
-__PACKAGE__->table('test');
-__PACKAGE__->add_columns(
- 'id' => {
- data_type => 'int',
- is_nullable => 0,
- is_auto_increment => 1,
- },
- 'name' => {
- data_type => 'varchar',
- size => 100,
- is_nullable => 1,
- },
- 'email' => {
- data_type => 'varchar',
- size => 100,
- is_nullable => 1,
- }
-);
-
-__PACKAGE__->set_primary_key('id');
-
-1;
+# $Id$
+package DBIC::Test::Schema::Test;
+use strict;
+use warnings;
+
+BEGIN {
+ use base qw/DBIx::Class::Core/;
+};
+
+__PACKAGE__->load_components(qw/Validation PK::Auto Core/);
+__PACKAGE__->table('test');
+__PACKAGE__->add_columns(
+ 'id' => {
+ data_type => 'int',
+ is_nullable => 0,
+ is_auto_increment => 1,
+ },
+ 'name' => {
+ data_type => 'varchar',
+ size => 100,
+ is_nullable => 1,
+ },
+ 'email' => {
+ data_type => 'varchar',
+ size => 100,
+ is_nullable => 1,
+ }
+);
+
+__PACKAGE__->set_primary_key('id');
+
+1;
Property changes on: trunk/DBIx-Class-Validation/t/lib/DBIC/Test/Schema/Test.pm
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/t/lib/DBIC/Test/Schema.pm
===================================================================
--- trunk/DBIx-Class-Validation/t/lib/DBIC/Test/Schema.pm 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/t/lib/DBIC/Test/Schema.pm 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,15 +1,15 @@
-# $Id: Schema.pm 3096 2007-02-09 20:58:19Z claco $
-package DBIC::Test::Schema;
-use strict;
-use warnings;
-
-BEGIN {
- use base qw/DBIx::Class::Schema/;
-};
-__PACKAGE__->load_classes;
-
-sub dsn {
- return shift->storage->connect_info->[0];
-};
-
-1;
+# $Id$
+package DBIC::Test::Schema;
+use strict;
+use warnings;
+
+BEGIN {
+ use base qw/DBIx::Class::Schema/;
+};
+__PACKAGE__->load_classes;
+
+sub dsn {
+ return shift->storage->connect_info->[0];
+};
+
+1;
Property changes on: trunk/DBIx-Class-Validation/t/lib/DBIC/Test/Schema.pm
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/t/lib/DBIC/Test.pm
===================================================================
--- trunk/DBIx-Class-Validation/t/lib/DBIC/Test.pm 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/t/lib/DBIC/Test.pm 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,101 +1,101 @@
-# $Id$
-package DBIC::Test;
-use strict;
-use warnings;
-
-BEGIN {
- # little trick by Ovid to pretend to subclass+exporter Test::More
- use base qw/Test::Builder::Module Class::Accessor::Grouped/;
- use Test::More;
- use File::Spec::Functions qw/catfile catdir/;
-
- @DBIC::Test::EXPORT = @Test::More::EXPORT;
-
- __PACKAGE__->mk_group_accessors('inherited', qw/db_dir db_file/);
-};
-
-__PACKAGE__->db_dir(catdir('t', 'var'));
-__PACKAGE__->db_file('test.db');
-
-## cribbed and modified from DBICTest in DBIx::Class tests
-sub init_schema {
- my ($self, %args) = @_;
- my $db_dir = $args{'db_dir'} || $self->db_dir;
- my $db_file = $args{'db_file'} || $self->db_file;
- my $namespace = $args{'namespace'} || 'DBIC::TestSchema';
- my $db = catfile($db_dir, $db_file);
-
- eval 'use DBD::SQLite';
- if ($@) {
- BAIL_OUT('DBD::SQLite not installed');
-
- return;
- };
-
- eval 'use DBIC::Test::Schema';
- if ($@) {
- BAIL_OUT("Could not load DBIC::Test::Schema: $@");
-
- return;
- };
-
- unlink($db) if -e $db;
- unlink($db . '-journal') if -e $db . '-journal';
- mkdir($db_dir) unless -d $db_dir;
-
- my $dsn = 'dbi:SQLite:' . $db;
- my $schema = DBIC::Test::Schema->compose_namespace($namespace)->connect($dsn);
- $schema->storage->on_connect_do([
- 'PRAGMA synchronous = OFF',
- 'PRAGMA temp_store = MEMORY'
- ]);
-
- __PACKAGE__->deploy_schema($schema, %args);
- __PACKAGE__->populate_schema($schema, %args) unless $args{'no_populate'};
-
- return $schema;
-};
-
-sub deploy_schema {
- my ($self, $schema, %options) = @_;
- my $eval = $options{'eval_deploy'};
-
- eval 'use SdddQL::Translator';
- if (!$@ && !$options{'no_deploy'}) {
- eval {
- $schema->deploy();
- };
- if ($@ && !$eval) {
- die $@;
- };
- } else {
- open IN, catfile('t', 'sql', 'test.sqlite.sql');
- my $sql;
- { local $/ = undef; $sql = <IN>; }
- close IN;
- eval {
- ($schema->storage->dbh->do($_) || print "Error on SQL: $_\n") for split(/;\n/, $sql);
- };
- if ($@ && !$eval) {
- die $@;
- };
- };
-};
-
-sub clear_schema {
- my ($self, $schema, %options) = @_;
-
- foreach my $source ($schema->sources) {
- $schema->resultset($source)->delete_all;
- };
-};
-
-sub populate_schema {
- my ($self, $schema, %options) = @_;
-
- if ($options{'clear'}) {
- $self->clear_schema($schema, %options);
- };
-};
-
-1;
+# $Id$
+package DBIC::Test;
+use strict;
+use warnings;
+
+BEGIN {
+ # little trick by Ovid to pretend to subclass+exporter Test::More
+ use base qw/Test::Builder::Module Class::Accessor::Grouped/;
+ use Test::More;
+ use File::Spec::Functions qw/catfile catdir/;
+
+ @DBIC::Test::EXPORT = @Test::More::EXPORT;
+
+ __PACKAGE__->mk_group_accessors('inherited', qw/db_dir db_file/);
+};
+
+__PACKAGE__->db_dir(catdir('t', 'var'));
+__PACKAGE__->db_file('test.db');
+
+## cribbed and modified from DBICTest in DBIx::Class tests
+sub init_schema {
+ my ($self, %args) = @_;
+ my $db_dir = $args{'db_dir'} || $self->db_dir;
+ my $db_file = $args{'db_file'} || $self->db_file;
+ my $namespace = $args{'namespace'} || 'DBIC::TestSchema';
+ my $db = catfile($db_dir, $db_file);
+
+ eval 'use DBD::SQLite';
+ if ($@) {
+ BAIL_OUT('DBD::SQLite not installed');
+
+ return;
+ };
+
+ eval 'use DBIC::Test::Schema';
+ if ($@) {
+ BAIL_OUT("Could not load DBIC::Test::Schema: $@");
+
+ return;
+ };
+
+ unlink($db) if -e $db;
+ unlink($db . '-journal') if -e $db . '-journal';
+ mkdir($db_dir) unless -d $db_dir;
+
+ my $dsn = 'dbi:SQLite:' . $db;
+ my $schema = DBIC::Test::Schema->compose_namespace($namespace)->connect($dsn);
+ $schema->storage->on_connect_do([
+ 'PRAGMA synchronous = OFF',
+ 'PRAGMA temp_store = MEMORY'
+ ]);
+
+ __PACKAGE__->deploy_schema($schema, %args);
+ __PACKAGE__->populate_schema($schema, %args) unless $args{'no_populate'};
+
+ return $schema;
+};
+
+sub deploy_schema {
+ my ($self, $schema, %options) = @_;
+ my $eval = $options{'eval_deploy'};
+
+ eval 'use SdddQL::Translator';
+ if (!$@ && !$options{'no_deploy'}) {
+ eval {
+ $schema->deploy();
+ };
+ if ($@ && !$eval) {
+ die $@;
+ };
+ } else {
+ open IN, catfile('t', 'sql', 'test.sqlite.sql');
+ my $sql;
+ { local $/ = undef; $sql = <IN>; }
+ close IN;
+ eval {
+ ($schema->storage->dbh->do($_) || print "Error on SQL: $_\n") for split(/;\n/, $sql);
+ };
+ if ($@ && !$eval) {
+ die $@;
+ };
+ };
+};
+
+sub clear_schema {
+ my ($self, $schema, %options) = @_;
+
+ foreach my $source ($schema->sources) {
+ $schema->resultset($source)->delete_all;
+ };
+};
+
+sub populate_schema {
+ my ($self, $schema, %options) = @_;
+
+ if ($options{'clear'}) {
+ $self->clear_schema($schema, %options);
+ };
+};
+
+1;
Property changes on: trunk/DBIx-Class-Validation/t/lib/DBIC/Test.pm
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Property changes on: trunk/DBIx-Class-Validation/t/lib/Validator.pm
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Property changes on: trunk/DBIx-Class-Validation/t/lib/ValidatorWithoutCheck.pm
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/t/manifest.t
===================================================================
--- trunk/DBIx-Class-Validation/t/manifest.t 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/t/manifest.t 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,22 +1,22 @@
-#!perl -wT
-# $Id: manifest.t 3230 2007-05-05 02:09:49Z claco $
-use strict;
-use warnings;
-
-BEGIN {
- use lib 't/lib';
- use DBIC::Test;
-
- plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
-
- eval 'use Test::CheckManifest 0.09';
- if($@) {
- plan skip_all => 'Test::CheckManifest 0.09 not installed';
- };
-};
-
-ok_manifest({
- exclude => ['/t/var', '/cover_db'],
- filter => [qr/\.svn/, qr/cover/, qr/Build(.(PL|bat))?/, qr/_build/],
- bool => 'or'
-});
+#!perl -wT
+# $Id$
+use strict;
+use warnings;
+
+BEGIN {
+ use lib 't/lib';
+ use DBIC::Test;
+
+ plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
+
+ eval 'use Test::CheckManifest 0.09';
+ if($@) {
+ plan skip_all => 'Test::CheckManifest 0.09 not installed';
+ };
+};
+
+ok_manifest({
+ exclude => ['/t/var', '/cover_db'],
+ filter => [qr/\.svn/, qr/cover/, qr/Build(.(PL|bat))?/, qr/_build/],
+ bool => 'or'
+});
Property changes on: trunk/DBIx-Class-Validation/t/manifest.t
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/t/pod_coverage.t
===================================================================
--- trunk/DBIx-Class-Validation/t/pod_coverage.t 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/t/pod_coverage.t 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,23 +1,23 @@
-#!perl -wT
-# $Id: pod_coverage.t 3230 2007-05-05 02:09:49Z claco $
-use strict;
-use warnings;
-
-BEGIN {
- use lib 't/lib';
- use DBIC::Test;
-
- plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
-
- eval 'use Test::Pod::Coverage 1.04';
- plan skip_all => 'Test::Pod::Coverage 1.04' if $@;
-
- eval 'use Pod::Coverage 0.14';
- plan skip_all => 'Pod::Coverage 0.14 not installed' if $@;
-};
-
-my $trustme = {
- trustme => [qr/^(g|s)et_component_class$/]
-};
-
-all_pod_coverage_ok($trustme);
+#!perl -wT
+# $Id$
+use strict;
+use warnings;
+
+BEGIN {
+ use lib 't/lib';
+ use DBIC::Test;
+
+ plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
+
+ eval 'use Test::Pod::Coverage 1.04';
+ plan skip_all => 'Test::Pod::Coverage 1.04' if $@;
+
+ eval 'use Pod::Coverage 0.14';
+ plan skip_all => 'Pod::Coverage 0.14 not installed' if $@;
+};
+
+my $trustme = {
+ trustme => [qr/^(g|s)et_component_class$/]
+};
+
+all_pod_coverage_ok($trustme);
Property changes on: trunk/DBIx-Class-Validation/t/pod_coverage.t
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/t/pod_syntax.t
===================================================================
--- trunk/DBIx-Class-Validation/t/pod_syntax.t 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/t/pod_syntax.t 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,16 +1,16 @@
-#!perl -wT
-# $Id: pod_syntax.t 3230 2007-05-05 02:09:49Z claco $
-use strict;
-use warnings;
-
-BEGIN {
- use lib 't/lib';
- use DBIC::Test;
-
- plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
-
- eval 'use Test::Pod 1.00';
- plan skip_all => 'Test::Pod 1.00 not installed' if $@;
-};
-
-all_pod_files_ok();
+#!perl -wT
+# $Id$
+use strict;
+use warnings;
+
+BEGIN {
+ use lib 't/lib';
+ use DBIC::Test;
+
+ plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
+
+ eval 'use Test::Pod 1.00';
+ plan skip_all => 'Test::Pod 1.00 not installed' if $@;
+};
+
+all_pod_files_ok();
Property changes on: trunk/DBIx-Class-Validation/t/pod_syntax.t
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/t/sql/test.sqlite.sql
===================================================================
--- trunk/DBIx-Class-Validation/t/sql/test.sqlite.sql 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/t/sql/test.sqlite.sql 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,5 +1,5 @@
-CREATE TABLE test (
- id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
- name VARCHAR(100) NULL,
- email VARCHAR(100) NULL
-);
+CREATE TABLE test (
+ id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
+ name VARCHAR(100) NULL,
+ email VARCHAR(100) NULL
+);
Property changes on: trunk/DBIx-Class-Validation/t/sql/test.sqlite.sql
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/t/strict.t
===================================================================
--- trunk/DBIx-Class-Validation/t/strict.t 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/t/strict.t 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,53 +1,53 @@
-#!perl -wT
-# $Id: strict.t 3230 2007-05-05 02:09:49Z claco $
-use strict;
-use warnings;
-
-BEGIN {
- use lib 't/lib';
- use DBIC::Test;
- use File::Find;
- use File::Basename;
-
- plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
-
- eval 'use Test::Strict';
- plan skip_all => 'Test::Strict not installed' if $@;
- plan skip_all => 'Need untaint in newer File::Find' if $] <= 5.006;
-};
-
-## I hope this can go away if Test::Strict or File::Find::Rule
-## finally run under -T. Until then, I'm on my own here. ;-)
-my @files;
-my %trusted = (
-
-);
-
-find({ wanted => \&wanted,
- untaint => 1,
- untaint_pattern => qr|^([-+@\w./]+)$|,
- untaint_skip => 1,
- no_chdir => 1
-}, qw(lib t));
-
-sub wanted {
- my $name = $File::Find::name;
- my $file = fileparse($name);
-
- return if $name =~ /TestApp/;
-
- if ($name =~ /\.(pm|pl|t)$/i && !exists($trusted{$file})) {
- push @files, $name;
- };
-};
-
-if (scalar @files) {
- plan tests => scalar @files;
-} else {
- plan tests => 1;
- fail 'No perl files found for Test::Strict checks!';
-};
-
-foreach (@files) {
- strict_ok($_);
-};
+#!perl -wT
+# $Id$
+use strict;
+use warnings;
+
+BEGIN {
+ use lib 't/lib';
+ use DBIC::Test;
+ use File::Find;
+ use File::Basename;
+
+ plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
+
+ eval 'use Test::Strict';
+ plan skip_all => 'Test::Strict not installed' if $@;
+ plan skip_all => 'Need untaint in newer File::Find' if $] <= 5.006;
+};
+
+## I hope this can go away if Test::Strict or File::Find::Rule
+## finally run under -T. Until then, I'm on my own here. ;-)
+my @files;
+my %trusted = (
+
+);
+
+find({ wanted => \&wanted,
+ untaint => 1,
+ untaint_pattern => qr|^([-+@\w./]+)$|,
+ untaint_skip => 1,
+ no_chdir => 1
+}, qw(lib t));
+
+sub wanted {
+ my $name = $File::Find::name;
+ my $file = fileparse($name);
+
+ return if $name =~ /TestApp/;
+
+ if ($name =~ /\.(pm|pl|t)$/i && !exists($trusted{$file})) {
+ push @files, $name;
+ };
+};
+
+if (scalar @files) {
+ plan tests => scalar @files;
+} else {
+ plan tests => 1;
+ fail 'No perl files found for Test::Strict checks!';
+};
+
+foreach (@files) {
+ strict_ok($_);
+};
Property changes on: trunk/DBIx-Class-Validation/t/strict.t
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/t/style_no_tabs.t
===================================================================
--- trunk/DBIx-Class-Validation/t/style_no_tabs.t 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/t/style_no_tabs.t 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,16 +1,16 @@
-#!perl -wT
-# $Id: style_no_tabs.t 3230 2007-05-05 02:09:49Z claco $
-use strict;
-use warnings;
-
-BEGIN {
- use lib 't/lib';
- use DBIC::Test;
-
- plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
-
- eval 'use Test::NoTabs 0.03';
- plan skip_all => 'Test::NoTabs 0.03 not installed' if $@;
-};
-
-all_perl_files_ok('lib');
+#!perl -wT
+# $Id$
+use strict;
+use warnings;
+
+BEGIN {
+ use lib 't/lib';
+ use DBIC::Test;
+
+ plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
+
+ eval 'use Test::NoTabs 0.03';
+ plan skip_all => 'Test::NoTabs 0.03 not installed' if $@;
+};
+
+all_perl_files_ok('lib');
Property changes on: trunk/DBIx-Class-Validation/t/style_no_tabs.t
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/DBIx-Class-Validation/t/warnings.t
===================================================================
--- trunk/DBIx-Class-Validation/t/warnings.t 2007-05-05 16:23:08 UTC (rev 3235)
+++ trunk/DBIx-Class-Validation/t/warnings.t 2007-05-05 16:24:35 UTC (rev 3236)
@@ -1,53 +1,53 @@
-#!perl -wT
-# $Id: warnings.t 3230 2007-05-05 02:09:49Z claco $
-use strict;
-use warnings;
-
-BEGIN {
- use lib 't/lib';
- use DBIC::Test;
- use File::Find;
- use File::Basename;
-
- plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
-
- eval 'use Test::Strict 0.05';
- plan skip_all => 'Test::Strict 0.05 not installed' if $@;
- plan skip_all => 'Need untaint in newer File::Find' if $] <= 5.006;
-};
-
-## I hope this can go away if Test::Strict or File::Find::Rule
-## finally run under -T. Until then, I'm on my own here. ;-)
-my @files;
-my %trusted = (
-
-);
-
-find({ wanted => \&wanted,
- untaint => 1,
- untaint_pattern => qr|^([-+@\w./]+)$|,
- untaint_skip => 1,
- no_chdir => 1
-}, qw(lib t));
-
-sub wanted {
- my $name = $File::Find::name;
- my $file = fileparse($name);
-
- return if $name =~ /TestApp/;
-
- if ($name =~ /\.(pm|pl|t)$/i && !exists($trusted{$file})) {
- push @files, $name;
- };
-};
-
-if (scalar @files) {
- plan tests => scalar @files;
-} else {
- plan tests => 1;
- fail 'No perl files found for Test::Strict checks!';
-};
-
-foreach (@files) {
- warnings_ok($_);
-};
+#!perl -wT
+# $Id$
+use strict;
+use warnings;
+
+BEGIN {
+ use lib 't/lib';
+ use DBIC::Test;
+ use File::Find;
+ use File::Basename;
+
+ plan skip_all => 'set TEST_AUTHOR to enable this test' unless $ENV{TEST_AUTHOR};
+
+ eval 'use Test::Strict 0.05';
+ plan skip_all => 'Test::Strict 0.05 not installed' if $@;
+ plan skip_all => 'Need untaint in newer File::Find' if $] <= 5.006;
+};
+
+## I hope this can go away if Test::Strict or File::Find::Rule
+## finally run under -T. Until then, I'm on my own here. ;-)
+my @files;
+my %trusted = (
+
+);
+
+find({ wanted => \&wanted,
+ untaint => 1,
+ untaint_pattern => qr|^([-+@\w./]+)$|,
+ untaint_skip => 1,
+ no_chdir => 1
+}, qw(lib t));
+
+sub wanted {
+ my $name = $File::Find::name;
+ my $file = fileparse($name);
+
+ return if $name =~ /TestApp/;
+
+ if ($name =~ /\.(pm|pl|t)$/i && !exists($trusted{$file})) {
+ push @files, $name;
+ };
+};
+
+if (scalar @files) {
+ plan tests => scalar @files;
+} else {
+ plan tests => 1;
+ fail 'No perl files found for Test::Strict checks!';
+};
+
+foreach (@files) {
+ warnings_ok($_);
+};
Property changes on: trunk/DBIx-Class-Validation/t/warnings.t
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
More information about the Bast-commits
mailing list