}
# rebless!
- # we use $_[1] here because of t/306_rebless_overload.t regressions on 5.8.8
+ # we use $_[1] here because of t/cmop/rebless_overload.t regressions
+ # on 5.8.8
$meta_instance->rebless_instance_structure($_[1], $self);
$self->_fixup_attributes_after_rebless($instance, $old_metaclass, %params);
sub rebless_instance_structure {
my ($self, $instance, $metaclass) = @_;
- # we use $_[1] here because of t/306_rebless_overload.t regressions on 5.8.8
+ # we use $_[1] here because of t/cmop/rebless_overload.t regressions
+ # on 5.8.8
bless $_[1], $metaclass->name;
}
sub super {
# This check avoids a recursion loop - see
- # t/100_bugs/020_super_recursion.t
+ # t/bugs/super_recursion.t
return if defined $SUPER_PACKAGE && $SUPER_PACKAGE ne caller();
return unless $SUPER_BODY; $SUPER_BODY->(@SUPER_ARGS);
}
It should be noted that C<super> and C<inner> B<cannot> be used in the same
method. However, they may be combined within the same class hierarchy; see
-F<t/014_override_augment_inner_super.t> for an example.
+F<t/basics/override_augment_inner_super.t> for an example.
The reason for this is that C<super> is only valid within a method
with the C<override> modifier, and C<inner> will never be valid within an
From here on, we can use C<$point> and C<$point3d> just as you would
any other Perl 5 object. For a more detailed example of what can be
done, you can refer to the
-F<t/000_recipes/moose_cookbook_basics_recipe1.t> test file.
+F<t/recipes/moose_cookbook_basics_recipe1.t> test file.
=head2 Moose Objects are Just Hashrefs
);
And as with the first recipe, a more in-depth example can be found in
-the F<t/000_recipes/moose_cookbook_basics_recipe2.t> test file.
+the F<t/recipes/moose_cookbook_basics_recipe2.t> test file.
=head1 CONCLUSION
As with all the other recipes, B<BinaryTree> can be used just like any
other Perl 5 class. A more detailed example of its usage can be found
-in F<t/000_recipes/moose_cookbook_basics_recipe3.t>.
+in F<t/recipes/moose_cookbook_basics_recipe3.t>.
=head1 CONCLUSION
parameters that were passed to the method.
A more detailed example of usage can be found in
-F<t/000_recipes/moose_cookbook_basics_recipe4.t>.
+F<t/recipes/moose_cookbook_basics_recipe4.t>.
=head1 CONCLUSION
documentation for the L<overload> pragma.
To see all the code we created together, take a look at
-F<t/000_recipes/basics/010_genes.t>.
+F<t/recipes/basics/010_genes.t>.
=head1 NEXT STEPS
# handle the case where we need to fix compatibility between a class and
# its parent, but all roles in the class are already also done by the
# parent
- # see t/050/054.t
+ # see t/metaclasses/metaclass_compat_no_fixing_bug.t
return $super_meta_name
unless @role_differences;
)->(@_);
};
-For more examples see the F<t/200_examples/004_example_w_DCS.t> test
+For more examples see the F<t/examples/example_w_DCS.t> test
file.
Here is an example of using L<Test::Deep> and it's non-test
};
For a complete example see the
-F<t/200_examples/005_example_w_TestDeep.t> test file.
+F<t/examples/example_w_TestDeep.t> test file.
=head2 Error messages