File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,14 @@ use strict;
22use warnings;
33
44use lib ' t/lib' ;
5- use Test::More tests => 2; # Test::Warnings re-tests had_no_warnings implicitly
5+ use Test::More;
66use Test::Requires qw( Test::Warnings) ;
7+ Test::Warnings-> import (' :no_end_test' );
78
9+ # Demolition::OnceRemoved has a variable only in scope during the initial `use`
10+ # As it leaves scope, Perl will call DESTROY on it
11+ # (and Moose::Object will then go through its DEMOLISHALL method)
812use Demolition::OnceRemoved;
913Test::Warnings::had_no_warnings(" No DEMOLISH warnings" );
14+
15+ done_testing();
Original file line number Diff line number Diff line change @@ -3,9 +3,6 @@ use strict;
33use warnings;
44use Demolition::Demolisher;
55
6- # This variable is only in scope during the initial `use`
7- # As it leaves scope, Perl will call DESTROY on it
8- # (and Moose::Object will then go through its DEMOLISHALL method)
96my $d = Demolition::Demolisher-> new;
107
1181;
You can’t perform that action at this time.
0 commit comments