Skip to content

Commit

Permalink
Merge branch 'master' into fix_882
Browse files Browse the repository at this point in the history
  • Loading branch information
exodist authored Oct 24, 2023
2 parents 49b8bb6 + ee07627 commit e86f0e1
Show file tree
Hide file tree
Showing 73 changed files with 123 additions and 76 deletions.
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

- Fix #882

1.302195 2023-04-28 05:55:54-07:00 America/Los_Angeles

- Fix done_testing(0) producing 2 plans and an incorrect message

1.302194 2023-03-13 20:06:57-07:00 America/Los_Angeles

- Fix failing test on 5.10
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ my %WriteMakefileArgs = (
"Storable" => 0,
"utf8" => 0
},
"VERSION" => "1.302195",
"VERSION" => "1.302196",
"test" => {
"TESTS" => "t/*.t t/Legacy/*.t t/Legacy/Bugs/*.t t/Legacy/Builder/*.t t/Legacy/Regression/*.t t/Legacy/Simple/*.t t/Legacy/Test2/*.t t/Legacy/Tester/*.t t/Legacy/subtest/*.t t/Legacy_And_Test2/*.t t/Test2/acceptance/*.t t/Test2/behavior/*.t t/Test2/legacy/*.t t/Test2/modules/*.t t/Test2/modules/API/*.t t/Test2/modules/API/InterceptResult/*.t t/Test2/modules/Event/*.t t/Test2/modules/Event/TAP/*.t t/Test2/modules/EventFacet/*.t t/Test2/modules/Formatter/*.t t/Test2/modules/Hub/*.t t/Test2/modules/Hub/Interceptor/*.t t/Test2/modules/IPC/*.t t/Test2/modules/IPC/Driver/*.t t/Test2/modules/Tools/*.t t/Test2/modules/Util/*.t t/Test2/regression/*.t t/regression/*.t"
}
Expand Down
4 changes: 2 additions & 2 deletions 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.302195';
our $VERSION = '1.302196';

BEGIN {
if( $] < 5.008 ) {
Expand Down Expand Up @@ -1670,7 +1670,7 @@ sub _ending {
return unless $plan || $count || $failed;

# Ran tests but never declared a plan or hit done_testing
if( !$hub->plan and $hub->count ) {
if( !defined($hub->plan) and $hub->count ) {
$self->diag("Tests were run but no plan was declared and done_testing() was not seen.");

if($real_exit_code) {
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';

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

Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';


=head1 NAME
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';

use Test::Builder;
use Symbol;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';

require Test::Builder::Tester;

Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';

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

Expand Down
21 changes: 18 additions & 3 deletions 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.302195';
our $VERSION = '1.302196';

use Test::Builder::Module;
our @ISA = qw(Test::Builder::Module);
Expand Down Expand Up @@ -1206,13 +1206,28 @@ sub _format_stack {
return $out;
}

my %_types = (
(map +($_ => $_), qw(
Regexp
ARRAY
HASH
SCALAR
REF
GLOB
CODE
)),
'LVALUE' => 'SCALAR',
'REF' => 'SCALAR',
'VSTRING' => 'SCALAR',
);

sub _type {
my $thing = shift;

return '' if !ref $thing;

for my $type (qw(Regexp ARRAY HASH REF SCALAR GLOB CODE VSTRING)) {
return $type if UNIVERSAL::isa( $thing, $type );
for my $type (keys %_types) {
return $_types{$type} if UNIVERSAL::isa( $thing, $type );
}

return '';
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';

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

use vars qw( @ISA @EXPORT );

our $VERSION = '1.302195';
our $VERSION = '1.302196';

@EXPORT = qw( run_tests check_tests check_test cmp_results show_space );
@ISA = qw( Exporter );
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';


use Test::Builder;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';


use Test::Tester::Capture;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';

use Scalar::Util();

Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';


__END__
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';


1;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';


my $INST;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';


use Test2::Util qw/pkg_to_file/;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';


use Carp qw/confess croak/;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';

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 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.302195';
our $VERSION = '1.302196';

use Scalar::Util qw/blessed/;
use Test2::Util qw/pkg_to_file/;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';

use List::Util qw/first/;
use Test2::Util qw/pkg_to_file/;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';

BEGIN {
require Test2::EventFacet;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';

BEGIN { require Test2::Hub; our @ISA = qw(Test2::Hub) }
use Test2::Util::HashBase;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';

use Carp qw/croak/;
use List::Util qw/first/;
Expand Down
2 changes: 1 addition & 1 deletion 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.302195';
our $VERSION = '1.302196';


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

our $VERSION = '1.302195';
our $VERSION = '1.302196';

use Scalar::Util qw/blessed reftype/;
use Carp qw/croak/;
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Event/Bail.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::Event::Bail;
use strict;
use warnings;

our $VERSION = '1.302195';
our $VERSION = '1.302196';


BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Event/Diag.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::Event::Diag;
use strict;
use warnings;

our $VERSION = '1.302195';
our $VERSION = '1.302196';


BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Event/Encoding.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::Event::Encoding;
use strict;
use warnings;

our $VERSION = '1.302195';
our $VERSION = '1.302196';

use Carp qw/croak/;

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

our $VERSION = '1.302195';
our $VERSION = '1.302196';


BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Event/Fail.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::Event::Fail;
use strict;
use warnings;

our $VERSION = '1.302195';
our $VERSION = '1.302196';

use Test2::EventFacet::Info;

Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Event/Generic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;
use Carp qw/croak/;
use Scalar::Util qw/reftype/;

our $VERSION = '1.302195';
our $VERSION = '1.302196';

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

our $VERSION = '1.302195';
our $VERSION = '1.302196';


BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Event/Ok.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::Event::Ok;
use strict;
use warnings;

our $VERSION = '1.302195';
our $VERSION = '1.302196';


BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Event/Pass.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::Event::Pass;
use strict;
use warnings;

our $VERSION = '1.302195';
our $VERSION = '1.302196';

use Test2::EventFacet::Info;

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

our $VERSION = '1.302195';
our $VERSION = '1.302196';


BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Event/Skip.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::Event::Skip;
use strict;
use warnings;

our $VERSION = '1.302195';
our $VERSION = '1.302196';


BEGIN { require Test2::Event::Ok; our @ISA = qw(Test2::Event::Ok) }
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Event/Subtest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::Event::Subtest;
use strict;
use warnings;

our $VERSION = '1.302195';
our $VERSION = '1.302196';

BEGIN { require Test2::Event::Ok; our @ISA = qw(Test2::Event::Ok) }
use Test2::Util::HashBase qw{subevents buffered subtest_id subtest_uuid start_stamp stop_stamp};
Expand Down
Loading

0 comments on commit e86f0e1

Please sign in to comment.