Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Test/Builder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1813,7 +1813,7 @@ Test::Builder - Backend for building test libraries
=head1 SYNOPSIS

package My::Test::Module;
use base 'Test::Builder::Module';
BEGIN { require Test::Builder::Module; our @ISA = qw(Test::Builder::Module) }

my $CLASS = __PACKAGE__;

Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/API.pm
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ The C<context()> method is your primary interface into the Test2 framework.
use Test2::API qw/context/;

our @EXPORT = qw/my_ok/;
use base 'Exporter';
BEGIN { require Exporter; our @ISA = qw(Exporter) }

# Just like ok() from Test::More
sub my_ok($;$) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/AsyncSubtest/Event/Attach.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use warnings;

our $VERSION = '1.302220';

use base 'Test2::Event';
BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
use Test2::Util::HashBase qw/id/;

sub no_display { 1 }
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/AsyncSubtest/Event/Detach.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use warnings;

our $VERSION = '1.302220';

use base 'Test2::Event';
BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
use Test2::Util::HashBase qw/id/;

sub no_display { 1 }
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/AsyncSubtest/Hub.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use warnings;

our $VERSION = '1.302220';

use base 'Test2::Hub::Subtest';
BEGIN { require Test2::Hub::Subtest; our @ISA = qw(Test2::Hub::Subtest) }
use Test2::Util::HashBase qw/ast_ids ast/;
use Test2::Util qw/get_tid/;

Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Bundle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Writing a bundle can be very simple:

# Re-export the tools
our @EXPORTS = qw/ok plan done_testing/;
use base 'Exporter';
BEGIN { require Exporter; our @ISA = qw(Exporter) }

1;

Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Bundle/More.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ our @EXPORT = qw{

subtest
};
use base 'Exporter';
BEGIN { require Exporter; our @ISA = qw(Exporter) }

1;

Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Bundle/Simple.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use Test2::Plugin::ExitSummary;
use Test2::Tools::Basic qw/ok plan done_testing skip_all/;

our @EXPORT = qw/ok plan done_testing skip_all/;
use base 'Exporter';
BEGIN { require Exporter; our @ISA = qw(Exporter) }

1;

Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Compare.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ our @EXPORT_OK = qw{
get_build push_build pop_build build
strict_convert relaxed_convert convert
};
use base 'Exporter';
BEGIN { require Exporter; our @ISA = qw(Exporter) }

sub compare {
my ($got, $check, $convert) = @_;
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Compare/Array.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package Test2::Compare::Array;
use strict;
use warnings;

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Compare/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ All comparison classes for Test2::Compare should inherit from this base class.
use strict;
use warnings;

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }
use Test2::Util::HashBase qw/stuff/;

sub name { 'STUFF' }
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Compare/Bool.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use warnings;

use Carp qw/confess/;

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Compare/Event.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use Scalar::Util qw/blessed/;

use Test2::Compare::EventMeta();

use base 'Test2::Compare::Object';
BEGIN { require Test2::Compare::Object; our @ISA = qw(Test2::Compare::Object) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Meta';
BEGIN { require Test2::Compare::Meta; our @ISA = qw(Test2::Compare::Meta) }

our $VERSION = '1.302220';

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

use Carp qw/confess/;

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Compare/Meta.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;
use Test2::Compare::Delta();
use Test2::Compare::Isa();

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use Carp qw/confess/;

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Compare/Object.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use Test2::Util qw/try/;

use Test2::Compare::Meta();

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use Carp qw/confess/;

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use Carp qw/confess/;

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

use base 'Test2::Compare::Base';
BEGIN { require Test2::Compare::Base; our @ISA = qw(Test2::Compare::Base) }

our $VERSION = '1.302220';

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

# This will make our class an event subclass (required)
use base 'Test2::Event';
BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }

# Add some accessors (optional)
# You are not obligated to use HashBase, you can use any object tool you
Expand Down
4 changes: 2 additions & 2 deletions lib/Test2/IPC/Driver.pm
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Test2::IPC::Driver - Base class for Test2 IPC drivers.

package Test2::IPC::Driver::MyDriver;

use base 'Test2::IPC::Driver';
BEGIN { require Test2::IPC::Driver; our @ISA = qw(Test2::IPC::Driver) }

...

Expand Down Expand Up @@ -110,7 +110,7 @@ load it too late for it to be effective.
use strict;
use warnings;

use base 'Test2::IPC::Driver';
BEGIN { require Test2::IPC::Driver; our @ISA = qw(Test2::IPC::Driver) }

sub is_viable {
return 0 if $^O eq 'win32'; # Will not work on windows.
Expand Down
2 changes: 1 addition & 1 deletion lib/Test2/Manual/Tooling/FirstTool.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tool.

use Test2::API qw/context/;

use base 'Exporter';
BEGIN { require Exporter; our @ISA = qw(Exporter) }
our @EXPORT = qw/ok/;

sub ok($;$@) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Test2/Manual/Tooling/Formatter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ complicated, but this will give you the basics needed to get started.

use JSON::MaybeXS qw/encode_json/;

use base qw/Test2::Formatter/;
BEGIN { require Test2::Formatter; our @ISA = qw(Test2::Formatter) }

sub new { bless {}, shift }

Expand All @@ -44,7 +44,7 @@ complicated, but this will give you the basics needed to get started.

=over 4

=item use base qw/Test2::Formatter/;
=item BEGIN { require Test2::Formatter; our @ISA = qw(Test2::Formatter) }

All formatters should inherit from L<Test2::Formatter>.

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

use base 'Test2::Require';
BEGIN { require Test2::Require; our @ISA = qw(Test2::Require) }

sub HAVE_WIDGETS { ... };

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

use base 'Test2::Require';
BEGIN { require Test2::Require; our @ISA = qw(Test2::Require) }

our $VERSION = '1.302220';

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

use base 'Test2::Require';
BEGIN { require Test2::Require; our @ISA = qw(Test2::Require) }

our $VERSION = '1.302220';

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

use Carp qw/confess/;
use base 'Test2::Require';
BEGIN { require Test2::Require; our @ISA = qw(Test2::Require) }

our $VERSION = '1.302220';

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

use base 'Test2::Require';
BEGIN { require Test2::Require; our @ISA = qw(Test2::Require) }

our $VERSION = '1.302220';

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

use base 'Test2::Require';
BEGIN { require Test2::Require; our @ISA = qw(Test2::Require) }

our $VERSION = '1.302220';

Expand Down
Loading