Skip to content

Commit 966c17a

Browse files
Leontjkeenan
authored andcommitted
cpan/Test-Harness - Update to version 3.52
3.52 2025-05-03 3.51_01 2025-01-17 - Supports additional indicators on block scalars in YAML - fix string comparisons with $] to use numeric comparison instead
1 parent 97f7af2 commit 966c17a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+315
-194
lines changed

Porting/Maintainers.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,8 +1110,8 @@ package Maintainers;
11101110
},
11111111

11121112
'Test::Harness' => {
1113-
'DISTRIBUTION' => 'LEONT/Test-Harness-3.50.tar.gz',
1114-
'SYNCINFO' => 'jkeenan on Wed Aug 14 21:59:59 2024',
1113+
'DISTRIBUTION' => 'LEONT/Test-Harness-3.52.tar.gz',
1114+
'SYNCINFO' => 'jkeenan on Sun May 4 07:13:21 2025',
11151115
'FILES' => q[cpan/Test-Harness],
11161116
'EXCLUDED' => [
11171117
qr{^examples/},

cpan/Test-Harness/lib/App/Prove.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ App::Prove - Implements the C<prove> command.
1818
1919
=head1 VERSION
2020
21-
Version 3.50
21+
Version 3.52
2222
2323
=cut
2424

25-
our $VERSION = '3.50';
25+
our $VERSION = '3.52';
2626

2727
=head1 DESCRIPTION
2828

cpan/Test-Harness/lib/App/Prove/State.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ App::Prove::State - State storage for the C<prove> command.
2525
2626
=head1 VERSION
2727
28-
Version 3.50
28+
Version 3.52
2929
3030
=cut
3131

32-
our $VERSION = '3.50';
32+
our $VERSION = '3.52';
3333

3434
=head1 DESCRIPTION
3535

cpan/Test-Harness/lib/App/Prove/State/Result.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ App::Prove::State::Result - Individual test suite results.
1414
1515
=head1 VERSION
1616
17-
Version 3.50
17+
Version 3.52
1818
1919
=cut
2020

21-
our $VERSION = '3.50';
21+
our $VERSION = '3.52';
2222

2323
=head1 DESCRIPTION
2424

cpan/Test-Harness/lib/App/Prove/State/Result/Test.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ App::Prove::State::Result::Test - Individual test results.
99
1010
=head1 VERSION
1111
12-
Version 3.50
12+
Version 3.52
1313
1414
=cut
1515

16-
our $VERSION = '3.50';
16+
our $VERSION = '3.52';
1717

1818
=head1 DESCRIPTION
1919

cpan/Test-Harness/lib/TAP/Base.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ and L<TAP::Harness>
1212
1313
=head1 VERSION
1414
15-
Version 3.50
15+
Version 3.52
1616
1717
=cut
1818

19-
our $VERSION = '3.50';
19+
our $VERSION = '3.52';
2020

2121
use constant GOT_TIME_HIRES => do {
2222
eval 'use Time::HiRes qw(time);';

cpan/Test-Harness/lib/TAP/Formatter/Base.pm

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ TAP::Formatter::Base - Base class for harness output delegates
5858
5959
=head1 VERSION
6060
61-
Version 3.50
61+
Version 3.52
6262
6363
=cut
6464

65-
our $VERSION = '3.50';
65+
our $VERSION = '3.52';
6666

6767
=head1 DESCRIPTION
6868
@@ -419,9 +419,7 @@ sub _summary_test_header {
419419
}
420420

421421
sub _output {
422-
my $self = shift;
423-
424-
print { $self->stdout } @_;
422+
print { shift->stdout } @_;
425423
}
426424

427425
sub _failure_output {

cpan/Test-Harness/lib/TAP/Formatter/Color.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ TAP::Formatter::Color - Run Perl test scripts with color
3939
4040
=head1 VERSION
4141
42-
Version 3.50
42+
Version 3.52
4343
4444
=cut
4545

46-
our $VERSION = '3.50';
46+
our $VERSION = '3.52';
4747

4848
=head1 DESCRIPTION
4949

cpan/Test-Harness/lib/TAP/Formatter/Console.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ TAP::Formatter::Console - Harness output delegate for default console output
1111
1212
=head1 VERSION
1313
14-
Version 3.50
14+
Version 3.52
1515
1616
=cut
1717

18-
our $VERSION = '3.50';
18+
our $VERSION = '3.52';
1919

2020
=head1 DESCRIPTION
2121

cpan/Test-Harness/lib/TAP/Formatter/Console/ParallelSession.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ TAP::Formatter::Console::ParallelSession - Harness output delegate for parallel
4141
4242
=head1 VERSION
4343
44-
Version 3.50
44+
Version 3.52
4545
4646
=cut
4747

48-
our $VERSION = '3.50';
48+
our $VERSION = '3.52';
4949

5050
=head1 DESCRIPTION
5151

cpan/Test-Harness/lib/TAP/Formatter/Console/Session.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ TAP::Formatter::Console::Session - Harness output delegate for default console o
2626
2727
=head1 VERSION
2828
29-
Version 3.50
29+
Version 3.52
3030
3131
=cut
3232

33-
our $VERSION = '3.50';
33+
our $VERSION = '3.52';
3434

3535
=head1 DESCRIPTION
3636
@@ -128,17 +128,17 @@ sub _closures {
128128
my $planned = $parser->tests_planned || '?';
129129
$plan = "/$planned ";
130130
}
131-
$output = $formatter->_get_output_method($parser);
132131

133132
if ( $show_count and $is_test ) {
134-
my $number = $result->number;
135133
my $now = CORE::time;
136134

137135
# Print status roughly once per second.
138136
# We will always get the first number as a side effect of
139137
# $last_status_printed starting with the value 0, which $now
140138
# will never be. (Unless someone sets their clock to 1970)
141139
if ( $last_status_printed != $now ) {
140+
my $number = $result->number;
141+
$output = $formatter->_get_output_method($parser);
142142
$formatter->$output("\r$pretty$number$plan");
143143
$last_status_printed = $now;
144144
}

cpan/Test-Harness/lib/TAP/Formatter/File.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ TAP::Formatter::File - Harness output delegate for file output
1313
1414
=head1 VERSION
1515
16-
Version 3.50
16+
Version 3.52
1717
1818
=cut
1919

20-
our $VERSION = '3.50';
20+
our $VERSION = '3.52';
2121

2222
=head1 DESCRIPTION
2323

cpan/Test-Harness/lib/TAP/Formatter/File/Session.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ TAP::Formatter::File::Session - Harness output delegate for file output
1010
1111
=head1 VERSION
1212
13-
Version 3.50
13+
Version 3.52
1414
1515
=cut
1616

17-
our $VERSION = '3.50';
17+
our $VERSION = '3.52';
1818

1919
=head1 DESCRIPTION
2020

cpan/Test-Harness/lib/TAP/Formatter/Session.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ TAP::Formatter::Session - Abstract base class for harness output delegate
2323
2424
=head1 VERSION
2525
26-
Version 3.50
26+
Version 3.52
2727
2828
=cut
2929

30-
our $VERSION = '3.50';
30+
our $VERSION = '3.52';
3131

3232
=head1 METHODS
3333

cpan/Test-Harness/lib/TAP/Harness.pm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ TAP::Harness - Run test scripts with statistics
1616
1717
=head1 VERSION
1818
19-
Version 3.50
19+
Version 3.52
2020
2121
=cut
2222

23-
our $VERSION = '3.50';
23+
our $VERSION = '3.52';
2424

2525
$ENV{HARNESS_ACTIVE} = 1;
2626
$ENV{HARNESS_VERSION} = $VERSION;
@@ -87,7 +87,7 @@ BEGIN {
8787
trap => sub { shift; shift },
8888
);
8989

90-
for my $method ( sort keys %VALIDATION_FOR ) {
90+
for my $method ( keys %VALIDATION_FOR ) {
9191
no strict 'refs';
9292
if ( $method eq 'lib' || $method eq 'switches' ) {
9393
*{$method} = sub {
@@ -432,7 +432,7 @@ Any keys for which the value is C<undef> will be ignored.
432432
$self->SUPER::_initialize( $arg_for, \@legal_callback );
433433
my %arg_for = %$arg_for; # force a shallow copy
434434

435-
for my $name ( sort keys %VALIDATION_FOR ) {
435+
for my $name ( keys %VALIDATION_FOR ) {
436436
my $property = delete $arg_for{$name};
437437
if ( defined $property ) {
438438
my $validate = $VALIDATION_FOR{$name};
@@ -475,8 +475,8 @@ Any keys for which the value is C<undef> will be ignored.
475475
);
476476
}
477477

478-
if ( my @props = sort keys %arg_for ) {
479-
$self->_croak("Unknown arguments to TAP::Harness::new (@props)");
478+
if ( my @props = keys %arg_for ) {
479+
$self->_croak('Unknown arguments to TAP::Harness::new ('.join(' ',sort @props).')');
480480
}
481481

482482
return $self;
@@ -494,7 +494,7 @@ Any keys for which the value is C<undef> will be ignored.
494494
warn "CPAN::Meta::YAML required to process $rulesfile" ;
495495
return;
496496
}
497-
my $layer = $] lt "5.008" ? "" : ":encoding(UTF-8)";
497+
my $layer = "$]" < "5.008" ? "" : ":encoding(UTF-8)";
498498
open my $fh, "<$layer", $rulesfile
499499
or die "Couldn't open $rulesfile: $!";
500500
my $yaml_text = do { local $/; <$fh> };

cpan/Test-Harness/lib/TAP/Harness/Env.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use constant IS_VMS => ( $^O eq 'VMS' );
77
use TAP::Object;
88
use Text::ParseWords qw/shellwords/;
99

10-
our $VERSION = '3.50';
10+
our $VERSION = '3.52';
1111

1212
# Get the parts of @INC which are changed from the stock list AND
1313
# preserve reordering of stock directories.
@@ -126,7 +126,7 @@ TAP::Harness::Env - Parsing harness related environmental variables where approp
126126
127127
=head1 VERSION
128128
129-
Version 3.50
129+
Version 3.52
130130
131131
=head1 SYNOPSIS
132132

cpan/Test-Harness/lib/TAP/Object.pm

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ TAP::Object - Base class that provides common functionality to all C<TAP::*> mod
99
1010
=head1 VERSION
1111
12-
Version 3.50
12+
Version 3.52
1313
1414
=cut
1515

16-
our $VERSION = '3.50';
16+
our $VERSION = '3.52';
1717

1818
=head1 SYNOPSIS
1919
@@ -50,9 +50,7 @@ L</_initialize> method. Returns a new object.
5050
=cut
5151

5252
sub new {
53-
my $class = shift;
54-
my $self = bless {}, $class;
55-
return $self->_initialize(@_);
53+
return bless({}, shift)->_initialize(@_);
5654
}
5755

5856
=head2 Instance Methods

cpan/Test-Harness/lib/TAP/Parser.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ TAP::Parser - Parse L<TAP|Test::Harness::TAP> output
2727
2828
=head1 VERSION
2929
30-
Version 3.50
30+
Version 3.52
3131
3232
=cut
3333

34-
our $VERSION = '3.50';
34+
our $VERSION = '3.52';
3535

3636
my $DEFAULT_TAP_VERSION = 12;
3737
my $MAX_TAP_VERSION = 14;
@@ -1340,9 +1340,9 @@ sub _make_state_table {
13401340
my $st = { %state_globals, %{ $states{$name} } };
13411341

13421342
# Add defaults
1343-
for my $next ( sort keys %{$st} ) {
1343+
for my $next ( keys %$st ) {
13441344
if ( my $default = $state_defaults{$next} ) {
1345-
for my $def ( sort keys %{$default} ) {
1345+
for my $def ( keys %$default ) {
13461346
$st->{$next}->{$def} ||= $default->{$def};
13471347
}
13481348
}

cpan/Test-Harness/lib/TAP/Parser/Aggregator.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ TAP::Parser::Aggregator - Aggregate TAP::Parser results
1212
1313
=head1 VERSION
1414
15-
Version 3.50
15+
Version 3.52
1616
1717
=cut
1818

19-
our $VERSION = '3.50';
19+
our $VERSION = '3.52';
2020

2121
=head1 SYNOPSIS
2222

cpan/Test-Harness/lib/TAP/Parser/Grammar.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ TAP::Parser::Grammar - A grammar for the Test Anything Protocol.
1414
1515
=head1 VERSION
1616
17-
Version 3.50
17+
Version 3.52
1818
1919
=cut
2020

21-
our $VERSION = '3.50';
21+
our $VERSION = '3.52';
2222

2323
=head1 SYNOPSIS
2424

0 commit comments

Comments
 (0)