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;
2
2
use warnings;
3
3
4
4
use lib ' t/lib' ;
5
- use Test::More tests => 2; # Test::Warnings re-tests had_no_warnings implicitly
5
+ use Test::More;
6
6
use Test::Requires qw( Test::Warnings) ;
7
+ Test::Warnings-> import (' :no_end_test' );
7
8
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)
8
12
use Demolition::OnceRemoved;
9
13
Test::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;
3
3
use warnings;
4
4
use Demolition::Demolisher;
5
5
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)
9
6
my $d = Demolition::Demolisher-> new;
10
7
11
8
1;
You can’t perform that action at this time.
0 commit comments