use strict;
use warnings;
-use Test::More tests => 25;
+use Test::More tests => 23;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
- use_ok('Class::MOP::Class');
-}
+use Class::MOP;
+use Class::MOP::Class;
{
package Foo;
use strict;
use warnings;
-use Test::More tests => 8;
+use Test::More tests => 6;
-BEGIN {
- use_ok('Class::MOP');
- use_ok('Class::MOP::Class');
-}
+use Class::MOP;
+use Class::MOP::Class;
=pod
use strict;
use warnings;
-use Test::More tests => 14;
+use Test::More tests => 12;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
- use_ok('Class::MOP::Class');
-}
+use Class::MOP;
+use Class::MOP::Class;
=pod
use strict;
use warnings;
-use Test::More tests => 71;
+use Test::More tests => 70;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
my $FOO_ATTR = Class::MOP::Attribute->new('$foo');
my $BAR_ATTR = Class::MOP::Attribute->new('$bar' => (
use FindBin;
use File::Spec::Functions;
-use Test::More tests => 36;
+use Test::More tests => 35;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
use lib catdir($FindBin::Bin, 'lib');
use strict;
use warnings;
-use Test::More tests => 236;
+use Test::More tests => 232;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
- use_ok('Class::MOP::Class');
- use_ok('Class::MOP::Package');
- use_ok('Class::MOP::Module');
-}
+use Class::MOP;
+use Class::MOP::Class;
+use Class::MOP::Package;
+use Class::MOP::Module;
{
my $class = Class::MOP::Class->initialize('Foo');
use strict;
use warnings;
-use Test::More tests => 28;
+use Test::More tests => 27;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
my $Point = Class::MOP::Class->create('Point' => (
version => '0.01',
use strict;
use warnings;
-use Test::More tests => 87;
+use Test::More tests => 86;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
{
package Foo;
use strict;
use warnings;
-use Test::More tests => 28;
+use Test::More tests => 27;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
{
package Point;
use strict;
use warnings;
-use Test::More tests => 63;
+use Test::More tests => 62;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
{
my $attr = Class::MOP::Attribute->new('$test');
use strict;
use warnings;
-use Test::More tests => 10;
+use Test::More tests => 9;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
=pod
use strict;
use warnings;
-use Test::More tests => 49;
+use Test::More tests => 48;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
{
dies_ok {
use strict;
use warnings;
-use Test::More tests => 20;
+use Test::More tests => 19;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
{
package BankAccount;
use strict;
use warnings;
-use Test::More tests => 19;
+use Test::More tests => 18;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
{
package Foo;
use strict;
use warnings;
-use Test::More tests => 11;
+use Test::More tests => 10;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
my $anon_class_name;
my $anon_meta_name;
use strict;
use warnings;
-use Test::More tests => 29;
+use Test::More tests => 27;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
- use_ok('Class::MOP::Attribute');
+BEGIN {use Class::MOP;use Class::MOP::Attribute;
}
# most values are static
use Scalar::Util;
-use Test::More tests => 17;
+use Test::More tests => 16;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
=pod
use Scalar::Util 'blessed', 'reftype';
-use Test::More tests => 37;
+use Test::More tests => 36;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
=pod
use Scalar::Util 'blessed', 'reftype';
-use Test::More tests => 10;
+use Test::More tests => 9;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
=pod
use strict;
use warnings;
-use Test::More tests => 12;
+use Test::More tests => 11;
-BEGIN {
- use_ok('metaclass');
+BEGIN {use metaclass;
}
{
use strict;
use warnings;
-use Test::More tests => 7;
+use Test::More tests => 6;
-BEGIN {
- use_ok('metaclass');
+BEGIN {use metaclass;
}
# meta classes
use strict;
use warnings;
-use Test::More tests => 7;
+use Test::More tests => 6;
-BEGIN {
- use_ok('metaclass');
+BEGIN {use metaclass;
}
# meta classes
use strict;
use warnings;
-use Test::More tests => 7;
+use Test::More tests => 6;
-BEGIN {
- use_ok('metaclass');
+BEGIN {use metaclass;
}
# meta classes
use strict;
use warnings;
-use Test::More tests => 7;
+use Test::More tests => 6;
-BEGIN {
- use_ok('metaclass');
+BEGIN {use metaclass;
}
# meta classes
use FindBin;
use File::Spec::Functions;
-use Test::More tests => 9;
+use Test::More tests => 8;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
use lib catdir($FindBin::Bin, 'lib');
use strict;
use warnings;
-use Test::More tests => 22;
+use Test::More tests => 21;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
{
package Foo;
use strict;
use warnings;
-use Test::More tests => 46;
+use Test::More tests => 45;
use Test::Exception;
use Scalar::Util qw/isweak reftype/;
-BEGIN {
- use_ok('Class::MOP::Instance');
-}
+use Class::MOP::Instance;
can_ok( "Class::MOP::Instance", $_ ) for qw/
new
use strict;
use warnings;
-use Test::More tests => 16;
+use Test::More tests => 15;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP::Instance');
-}
+use Class::MOP::Instance;
my $C = 'Class::MOP::Instance';
use strict;
use warnings;
-use Test::More tests => 85;
+use Test::More tests => 84;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
{
package Foo;
use FindBin;
use File::Spec::Functions;
-use Test::More tests => 15;
+use Test::More tests => 14;
use Test::Exception;
use Scalar::Util;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
use lib catdir($FindBin::Bin, 'lib');
use strict;
use warnings;
-use Test::More tests => 93;
+use Test::More tests => 91;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
- use_ok('Class::MOP::Immutable');
+BEGIN {use Class::MOP;use Class::MOP::Immutable;
}
{
use strict;
use warnings;
-use Test::More tests => 112;
+use Test::More tests => 111;
use Test::Exception;
use Scalar::Util;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
{
package Foo;
use strict;
use warnings;
-use Test::More tests => 16;
+use Test::More tests => 15;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
+BEGIN {use Class::MOP;
}
{
use FindBin;
use File::Spec::Functions;
-use Test::More tests => 70;
+use Test::More tests => 69;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
use lib catdir($FindBin::Bin, 'lib');
use strict;
use warnings;
-use Test::More tests => 12;
+use Test::More tests => 11;
use File::Spec;
-BEGIN {
- use_ok('Class::MOP');
+BEGIN {use Class::MOP;
require_ok(File::Spec->catfile('examples', 'InstanceCountingClass.pod'));
}
use strict;
use warnings;
-use Test::More tests => 89;
+use Test::More tests => 88;
use File::Spec;
use Scalar::Util 'reftype';
-BEGIN {
- use_ok('Class::MOP');
+BEGIN {use Class::MOP;
require_ok(File::Spec->catfile('examples', 'InsideOutClass.pod'));
}
use strict;
use warnings;
-use Test::More tests => 10;
+use Test::More tests => 9;
use File::Spec;
-BEGIN {
- use_ok('Class::MOP');
+BEGIN {use Class::MOP;
require_ok(File::Spec->catfile('examples', 'Perl6Attribute.pod'));
}
use strict;
use warnings;
-use Test::More tests => 28;
+use Test::More tests => 27;
use File::Spec;
-BEGIN {
- use_ok('Class::MOP');
+BEGIN {use Class::MOP;
require_ok(File::Spec->catfile('examples', 'AttributesWithHistory.pod'));
}
use strict;
use warnings;
-use Test::More tests => 29;
+use Test::More tests => 28;
use File::Spec;
-BEGIN {
- use_ok('Class::MOP');
+BEGIN {use Class::MOP;
require_ok(File::Spec->catfile('examples', 'ClassEncapsulatedAttributes.pod'));
}
use strict;
use warnings;
-use Test::More tests => 26;
+use Test::More tests => 25;
use File::Spec;
-BEGIN {
- use_ok('Class::MOP');
+BEGIN {use Class::MOP;
require_ok(File::Spec->catfile('examples', 'LazyClass.pod'));
}
BEGIN {
eval "use Algorithm::C3";
plan skip_all => "Algorithm::C3 required for this test" if $@;
- plan tests => 5;
-
- use_ok('Class::MOP');
+ plan tests => 4;use Class::MOP;
require_ok(File::Spec->catfile('examples', 'C3MethodDispatchOrder.pod'));
}
use strict;
use warnings;
-use Test::More tests => 73;
+use Test::More tests => 72;
use File::Spec;
use Scalar::Util 'reftype';
-BEGIN {
- use_ok('Class::MOP');
+BEGIN {use Class::MOP;
require_ok(File::Spec->catfile('examples', 'ArrayBasedStorage.pod'));
}
use strict;
use warnings;
-use Test::More tests => 8;
+use Test::More tests => 7;
=pod
=cut
-BEGIN {
- use_ok('Class::MOP');
+BEGIN {use Class::MOP;
}
{
use strict;
use warnings;
-use Test::More tests => 2;
+use Test::More tests => 1;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
=pod
use strict;
use warnings;
-use Test::More tests => 9;
+use Test::More tests => 8;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
=pod
use strict;
use warnings;
-use Test::More tests => 5;
+use Test::More tests => 4;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
my @calls;
use strict;
use warnings;
-use Test::More tests => 4;
+use Test::More tests => 3;
use Test::Exception;
-BEGIN {
- use_ok('Class::MOP');
-}
+use Class::MOP;
=pod