1. Shlomi Fish
  2. perl-Test-Run

Commits

Shlomi Fish  committed 9f16284

cpan-changes and style-trailing-space

  • Participants
  • Parent commits 49f1731
  • Branches default

Comments (0)

Files changed (12)

File modules/Test-Run-Plugin-ColorFileVerdicts/Changes

View file
 Revision history for Test-Run-Plugin-ColorFileVerdicts
 
+0.0123  2014-01-31
         * Build.PL configure_requires , dep MRO::Compat and min
         dep on perl-5.008 (CPANTS).
         * Add LICENSE file.
+        * Add t/cpan-changes.t and t/style-trailing-space.t - fix their
+        problems.
 
-0.0122    Tue Feb  9 20:46:17 IST 2010
+0.0122  2010-02-09
         * Got rid of _get_private_fields() _get_simple_params() and
         _get_private_simple_params().
 
-0.0121    Thu Aug  6 20:19:51 IDT 2009
+0.0121  2009-08-06
         * Fixed a bug that could cause a crash when a failure was encountered.
         Moose didn't like assigning an undef to
         individual_test_file_verdict_colors .
 
-0.0120    Thu Aug  6 13:45:46 IDT 2009
+0.0120  2009-08-06
         * Converted to Moose and to Test-Run-Core/Test-Run-CmdLine 0.0120.
 
-0.0106    Mon May  4 21:06:10 IDT 2009
+0.0106  2009-05-04
         * Converted from NEXT.pm to MRO::Compat.
 
-0.0105    Tue Aug 19 22:34:31 IDT 2008
+0.0105  2008-08-19
         * Converted to private_backend_plugins().
         * Bumped the dependency to the latest Test-Run-CmdLine.
 
-0.0104    Mon Aug 18 20:26:07 IDT 2008
+0.0104  2008-08-18
         * Changed _initialize() to _init().
             - In accordance to the new Test-Run.
         * Bumped the dependencies.
         * Changed the licence to "mit" instead of "bsd".
 
-0.0103    Sat Jun 23 17:18:31 IDT 2007
+0.0103  2007-06-23
         * Simplified the CanonFailedObj plugin-specifying code based on the
         new development of Test::Run::Base.
         * Converted the tests to use the Test::Trap-based classes.
 
-0.0102    Tue Jun 12 19:29:22 IDT 2007
+0.0102  2007-06-12
         * Fixed a class-inheritance-graph problem in which the plugin
         inherited from Test::Run::Core and caused the functions of the
         plugins following it to be referenced directly from Test::Run::Core.
         * Note: instead of inheriting from Class::Accessor inherit from
         Test::Run::Base which defines ->new properly.
 
-0.0101  Mon Jun 11 15:19:38 IDT 2007
+0.0101  2007-06-11
         * Converted from Test::Trap to Test::Run::Trap::Obj.
         * Extracted the Test::Run::Plugin::ColorFileVerdicts::ColorBase class.
         * Converted to private_non_direct_backend_env_mapping
         * Adapted to the new Test::Run semantics by creating:
             Test::Run::Plugin::ColorFileVerdicts::CanonFailedObj
 
-0.01    Mon Mar 19 16:23:12 IST 2007
+0.01    2007-03-19
         First version, released on an unsuspecting world.

File modules/Test-Run-Plugin-ColorFileVerdicts/MANIFEST

View file
 t/02-cmdline-run.t
 t/03-inheritance-problems.t
 t/boilerplate.t
+t/cpan-changes.t
 t/pod-coverage.t
 t/pod.t
 t/sample-tests/one-fail-exit-0.t
 t/sample-tests/one-ok.t
 t/sample-tests/several-oks.t
 t/sample-tests/simple_fail.t
+t/style-trailing-space.t

File modules/Test-Run-Plugin-ColorFileVerdicts/README

View file
 Test-Run-Plugin-ColorFileVerdicts
 
 This is a Test-Run ( http://web-cpan.berlios.de/modules/Test-Run/ ) plugin
-that allows one to color the verdicts of the individual test files 
+that allows one to color the verdicts of the individual test files
 ("ok" and "NOT OK") in terminal colors. If you want to color the summary line
 look at Test-Run-Plugin-ColorSummary and Test-Run-CmdLine-Plugin-ColorSummary.
 

File modules/Test-Run-Plugin-ColorFileVerdicts/inc/Test/Run/Builder.pm

View file
         Test::Run::CmdLine::Iface->new(
             {
                 'test_files' => [glob("t/*.t")],
-            }   
+            }
             # 'backend_params' => $self->_get_backend_params(),
         );
 

File modules/Test-Run-Plugin-ColorFileVerdicts/lib/Test/Run/CmdLine/Plugin/ColorFileVerdicts.pm

View file
 
 =head2 $self->private_backend_plugins()
 
-Returns the Backend Plugins as specified by this plugin. See 
+Returns the Backend Plugins as specified by this plugin. See
 L<Test::Run::CmdLine> for more information.
 
 =cut
 
 =head2 $self->private_backend_args()
 
-Makes L<Test::Run::CmdLine> process the C<PERL_HARNESS_VERDICT_COLORS> 
+Makes L<Test::Run::CmdLine> process the C<PERL_HARNESS_VERDICT_COLORS>
 environment variable.
 
 =cut
 success and "blue" for failure use:
 
     export PERL_HARNESS_VERDICT_COLORS="success=magenta;failure=blue"
-    
-As you can see the key/value pairs are separated with "C<;>" and "C<=>" is 
+
+As you can see the key/value pairs are separated with "C<;>" and "C<=>" is
 used for the assignment.
 
 =cut
 
     if (exists($ENV{PERL_HARNESS_VERDICT_COLORS}))
     {
-        # FIXME 
+        # FIXME
         my $mapping_string = $ENV{PERL_HARNESS_VERDICT_COLORS};
 
         my @assignments = split(/\s*;\s*/, $mapping_string);
-        return 
+        return
         [
-            individual_test_file_verdict_colors => 
+            individual_test_file_verdict_colors =>
             {map { /\A([^=]*)=(.*)\z/ms ? ($1 => $2) : () } @assignments}
         ];
     }

File modules/Test-Run-Plugin-ColorFileVerdicts/lib/Test/Run/Plugin/ColorFileVerdicts.pm

View file
 =head1 SYNOPSIS
 
     package MyTestRun;
-    
+
     use vars qw(@ISA);
 
     @ISA = (qw(Test::Run::Plugin::ColorFileVerdicts Test::Run::Obj));
 
     my $tester = MyTestRun->new(
         {
-            test_files => 
+            test_files =>
             [
                 "t/sample-tests/one-ok.t",
                 "t/sample-tests/several-oks.t"
 {
     my $self = shift;
 
-    return 
+    return
     [
         @{$self->next::method()},
         individual_test_file_verdict_colors =>

File modules/Test-Run-Plugin-ColorFileVerdicts/lib/Test/Run/Plugin/ColorFileVerdicts/ColorBase.pm

View file
 
     return $self->_get_individual_test_file_verdict_user_set_color($event)
         || $self->_get_default_individual_test_file_verdict_color($event);
-            
+
 }
 
 sub _get_default_individual_test_file_verdict_color

File modules/Test-Run-Plugin-ColorFileVerdicts/t/01-run.t

View file
             class => "MyTestRun",
             args =>
             [
-            test_files => 
+            test_files =>
             [
                 "t/sample-tests/one-ok.t",
                 "t/sample-tests/several-oks.t"
             class => "MyTestRun",
             args =>
             [
-            test_files => 
+            test_files =>
             [
                 "t/sample-tests/simple_fail.t",
             ],
             class => "MyTestRun",
             args =>
             [
-            test_files => 
+            test_files =>
             [
                 "t/sample-tests/one-ok.t",
                 "t/sample-tests/several-oks.t"
             ],
-            individual_test_file_verdict_colors => 
+            individual_test_file_verdict_colors =>
             {
                 success => "yellow",
                 failure => "blue",
             class => "MyTestRun",
             args =>
             [
-            test_files => 
+            test_files =>
             [
                 "t/sample-tests/one-ok.t",
                 "t/sample-tests/one-fail-exit-0.t"
             ],
-            individual_test_file_verdict_colors => 
+            individual_test_file_verdict_colors =>
             {
                 success => "yellow",
                 failure => "blue",
             class => "MyTestRun",
             args =>
             [
-            test_files => 
+            test_files =>
             [
                 "t/sample-tests/one-ok.t",
                 "t/sample-tests/one-fail.t"
             ],
-            individual_test_file_verdict_colors => 
+            individual_test_file_verdict_colors =>
             {
                 success => "yellow",
                 failure => "blue",

File modules/Test-Run-Plugin-ColorFileVerdicts/t/02-cmdline-run.t

View file
 
 {
     local %ENV = %ENV;
-    
+
     $ENV{'PERL5LIB'} = $abs_lib.$Config{'path_sep'}.$ENV{'PERL5LIB'};
     delete($ENV{'HARNESS_FILELEAK_IN_DIR'});
     delete($ENV{'HARNESS_VERBOSE'});
     delete($ENV{'PERL_HARNESS_VERDICT_COLORS'});
 
     $ENV{'HARNESS_PLUGINS'} = "ColorFileVerdicts";
-    
+
     {
         my $got = Test::Run::CmdLine::Trap::ProveApp->trap_run(
             {
 
         # TEST
         $got->field_like(
-            "stdout", qr/\Q${color}\Eok\Q${reset}\E/, 
+            "stdout", qr/\Q${color}\Eok\Q${reset}\E/,
             "ok is colored"
         );
     }
 
         # TEST
         $got->field_like(
-            "stdout", qr/\Q${color}\Eok\Q${reset}\E/, 
+            "stdout", qr/\Q${color}\Eok\Q${reset}\E/,
             "ok is colored"
         );
     }
 
         # TEST
         $got->field_like(
-            "stdout", qr/\Q${color}\Eok\Q${reset}\E/, 
+            "stdout", qr/\Q${color}\Eok\Q${reset}\E/,
             "ok is colored"
-        );        
+        );
     }
 }

File modules/Test-Run-Plugin-ColorFileVerdicts/t/03-inheritance-problems.t

View file
             class => "MyTestRun",
             args =>
             [
-            test_files => 
+            test_files =>
             [
                 "t/sample-tests/one-ok.t",
             ],

File modules/Test-Run-Plugin-ColorFileVerdicts/t/cpan-changes.t

View file
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::More;
+
+eval 'use Test::CPAN::Changes';
+plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
+
+changes_ok();
+

File modules/Test-Run-Plugin-ColorFileVerdicts/t/style-trailing-space.t

View file
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::More;
+
+eval "use Test::TrailingSpace";
+if ($@)
+{
+    plan skip_all => "Test::TrailingSpace required for trailing space test.";
+}
+else
+{
+    plan tests => 1;
+}
+
+my $finder = Test::TrailingSpace->new(
+    {
+        root => '.',
+        filename_regex => qr/(?:(?:\.(?:t|pm|pl|PL|yml|json|arc|vim))|README|Changes|LICENSE)\z/,
+    },
+);
+
+# TEST
+$finder->no_trailing_space(
+    "No trailing space was found."
+);
+