Skip to content

Commit

Permalink
cpan/Test-Simple - Update to version 1.302207
Browse files Browse the repository at this point in the history
1.302207  2024-12-27 18:13:18-08:00 America/Los_Angeles

    - Fix debugging info when JSON::MaybeXS is missing (Thanks James E Keenan)
    - Fix typos (Thanks sobrado8086)
    - Add TEST2_ENABLE_PLUGINS env var
    - Add Test2::Env docs
  • Loading branch information
Chad Granum authored and jkeenan committed Jan 5, 2025
1 parent a08b8bd commit d7e5e27
Show file tree
Hide file tree
Showing 198 changed files with 379 additions and 200 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -2586,6 +2586,7 @@ cpan/Test-Simple/lib/Test2/Compare/Set.pm Test-Simple
cpan/Test-Simple/lib/Test2/Compare/String.pm Test-Simple
cpan/Test-Simple/lib/Test2/Compare/Undef.pm Test-Simple
cpan/Test-Simple/lib/Test2/Compare/Wildcard.pm Test-Simple
cpan/Test-Simple/lib/Test2/Env.pm Test-Simple
cpan/Test-Simple/lib/Test2/Event.pm Module related to Test::Simple
cpan/Test-Simple/lib/Test2/Event/Bail.pm Module related to Test::Simple
cpan/Test-Simple/lib/Test2/Event/Diag.pm Module related to Test::Simple
Expand Down
4 changes: 2 additions & 2 deletions Porting/Maintainers.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1110,8 +1110,8 @@ package Maintainers;
},

'Test::Simple' => {
'DISTRIBUTION' => 'EXODIST/Test-Simple-1.302206.tar.gz',
'SYNCINFO' => 'jkeenan on Mon Dec 23 16:57:46 2024',
'DISTRIBUTION' => 'EXODIST/Test-Simple-1.302207.tar.gz',
'SYNCINFO' => 'jkeenan on Sun Jan 5 06:26:14 2025',
'FILES' => q[cpan/Test-Simple],
'EXCLUDED' => [
qr{^examples/},
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Builder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use 5.006;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

use Scalar::Util qw/blessed reftype weaken/;

Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Builder/Formatter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test::Builder::Formatter;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

BEGIN { require Test2::Formatter::TAP; our @ISA = qw(Test2::Formatter::TAP) }

Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Builder/Module.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Test::Builder;
require Exporter;
our @ISA = qw(Exporter);

our $VERSION = '1.302206';
our $VERSION = '1.302207';


=head1 NAME
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Builder/Tester.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Test::Builder::Tester;

use strict;
our $VERSION = '1.302206';
our $VERSION = '1.302207';

use Test::Builder;
use Symbol;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Builder/Tester/Color.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Test::Builder::Tester::Color;

use strict;
our $VERSION = '1.302206';
our $VERSION = '1.302207';

require Test::Builder::Tester;

Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Builder/TodoDiag.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test::Builder::TodoDiag;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

BEGIN { require Test2::Event::Diag; our @ISA = qw(Test2::Event::Diag) }

Expand Down
8 changes: 6 additions & 2 deletions cpan/Test-Simple/lib/Test/More.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sub _carp {
return warn @_, " at $file line $line\n";
}

our $VERSION = '1.302206';
our $VERSION = '1.302207';

use Test::Builder::Module;
our @ISA = qw(Test::Builder::Module);
Expand Down Expand Up @@ -395,7 +395,7 @@ different from some other value:
isnt $obj, $clone, "clone() produces a different object";
Historically we supported an C<isn't()> function as an alias of
C<isnt()>, however in Perl 5.37.9 support for the use of aprostrophe as
C<isnt()>, however in Perl 5.37.9 support for the use of apostrophe as
a package separator was deprecated and by Perl 5.42.0 support for it
will have been removed completely. Accordingly use of C<isn't()> is also
deprecated, and will produce warnings when used unless 'deprecated'
Expand Down Expand Up @@ -2002,6 +2002,10 @@ comes from.
L<Test::Most> Most commonly needed test functions and features.
=head1 ENVIRONMENT VARIABLES
See L<Test2::Env> for a list of meaningul environment variables.
=head1 AUTHORS
Michael G Schwern E<lt>[email protected]E<gt> with much inspiration
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Simple.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use 5.006;

use strict;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

use Test::Builder::Module;
our @ISA = qw(Test::Builder::Module);
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Tester.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use Test::Tester::Delegate;

require Exporter;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

our @EXPORT = qw( run_tests check_tests check_test cmp_results show_space );
our @ISA = qw( Exporter );
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Tester/Capture.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use strict;

package Test::Tester::Capture;

our $VERSION = '1.302206';
our $VERSION = '1.302207';


use Test::Builder;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Tester/CaptureRunner.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use strict;

package Test::Tester::CaptureRunner;

our $VERSION = '1.302206';
our $VERSION = '1.302207';


use Test::Tester::Capture;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/Tester/Delegate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use warnings;

package Test::Tester::Delegate;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

use Scalar::Util();

Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test/use/ok.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Test::use::ok;
use 5.005;

our $VERSION = '1.302206';
our $VERSION = '1.302207';


__END__
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';


1;
Expand Down
39 changes: 38 additions & 1 deletion cpan/Test-Simple/lib/Test2/API.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ BEGIN {
$ENV{TEST2_ACTIVE} = 1;
}

our $VERSION = '1.302206';
our $VERSION = '1.302207';


my $INST;
Expand Down Expand Up @@ -808,6 +808,39 @@ sub run_subtest {
# called.
require Test2::API::Context;

# If the env var was set to load plugins, load them now, this is the earliest
# safe point to do so.
if (my $plugins = $ENV{TEST2_ENABLE_PLUGINS}) {
for my $p (split /\s*,\s*/, $plugins) {
$p = "Test2::Plugin::$p" unless $p =~ s/^\+//;
my $mod = "$p.pm";
$mod =~ s{::}{/}g;

if ($ENV{HARNESS_IS_VERBOSE} || !$ENV{HARNESS_ACTIVE}) {
# If the harness is verbose then just display the message for all to
# see. It is nice info and they already asked for noisy output.

test2_add_callback_post_load(sub {
test2_stack()->top; # Ensure we have at least 1 hub.
my ($hub) = test2_stack()->all;
$hub->send(
Test2::Event::Note->new(
trace => Test2::Util::Trace->new(frame => [__PACKAGE__, __FILE__, __LINE__, $p]),
message => "Loaded plugin '$p' as specified in the TEST2_ENABLE_PLUGINS env var.",
),
);
});
}

eval {
package main;
require $mod;
$p->import;
1
} or die "Could not load plugin '$p', which was specified in the TEST2_ENABLE_PLUGINS env var ($plugins): $@";
}
}

1;

__END__
Expand Down Expand Up @@ -911,6 +944,10 @@ documentation for details on how to best use it.
... And others ...
=head1 ENVIRONMENT VARIABLES
See L<Test2::Env> for a list of meaningul environment variables.
=head1 MAIN API EXPORTS
All exports are optional. You must specify subs to import.
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/API/Breakage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::API::Breakage;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';


use Test2::Util qw/pkg_to_file/;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/API/Context.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::API::Context;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';


use Carp qw/confess croak/;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/API/Instance.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::API::Instance;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

our @CARP_NOT = qw/Test2::API Test2::API::Instance Test2::IPC::Driver Test2::Formatter/;
use Carp qw/confess carp/;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/API/InterceptResult.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::API::InterceptResult;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

use Scalar::Util qw/blessed/;
use Test2::Util qw/pkg_to_file/;
Expand Down
6 changes: 3 additions & 3 deletions cpan/Test-Simple/lib/Test2/API/InterceptResult/Event.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::API::InterceptResult::Event;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

use List::Util qw/first/;
use Test2::Util qw/pkg_to_file/;
Expand Down Expand Up @@ -650,7 +650,7 @@ Possible briefs:
"SKIP ALL"
"SKIP ALL: $why"
Note that only the first applicable brief is returned. This is essnetially a
Note that only the first applicable brief is returned. This is essentially a
poor-mans TAP that only includes facets that could (but not necessarily do)
cause a failure.
Expand Down Expand Up @@ -944,7 +944,7 @@ bail-out was requested.
=item EMPTY_LIST_OR_STRING = $event->bailout_brief
Get the brief of the balout if present.
Get the brief of the bailout if present.
=item EMPTY_LIST_OR_STRING = $event->bailout_reason
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/API/InterceptResult/Facet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::API::InterceptResult::Facet;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

BEGIN {
require Test2::EventFacet;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/API/InterceptResult/Hub.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::API::InterceptResult::Hub;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

BEGIN { require Test2::Hub; our @ISA = qw(Test2::Hub) }
use Test2::Util::HashBase;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/API/InterceptResult/Squasher.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::API::InterceptResult::Squasher;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

use Carp qw/croak/;
use List::Util qw/first/;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/API/Stack.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::API::Stack;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';


use Test2::Hub();
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/AsyncSubtest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use warnings;

use Test2::IPC;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

our @CARP_NOT = qw/Test2::Util::HashBase/;

Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/AsyncSubtest/Event/Attach.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::AsyncSubtest::Event::Attach;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

use base 'Test2::Event';
use Test2::Util::HashBase qw/id/;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/AsyncSubtest/Event/Detach.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::AsyncSubtest::Event::Detach;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

use base 'Test2::Event';
use Test2::Util::HashBase qw/id/;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/AsyncSubtest/Formatter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::AsyncSubtest::Formatter;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

die "Should not load this anymore";

Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/AsyncSubtest/Hub.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::AsyncSubtest::Hub;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

use base 'Test2::Hub::Subtest';
use Test2::Util::HashBase qw/ast_ids ast/;
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/Bundle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::Bundle;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

1;

Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/Bundle/Extended.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use warnings;

use Test2::V0;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

BEGIN {
push @Test2::Bundle::Extended::ISA => 'Test2::V0';
Expand Down
2 changes: 1 addition & 1 deletion cpan/Test-Simple/lib/Test2/Bundle/More.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::Bundle::More;
use strict;
use warnings;

our $VERSION = '1.302206';
our $VERSION = '1.302207';

use Test2::Plugin::ExitSummary;

Expand Down
Loading

0 comments on commit d7e5e27

Please sign in to comment.