Skip to content

Commit f6033b1

Browse files
committed
add test for Server::Starter::Guard
1 parent 241ccec commit f6033b1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

t/09-guard.t

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
use strict;
2+
use warnings;
3+
use Test::More;
4+
5+
use_ok("Server::Starter::Guard");
6+
7+
my $cnt = 0;
8+
9+
my $guard = Server::Starter::Guard->new(sub {
10+
$cnt++;
11+
});
12+
13+
is $cnt, 0;
14+
undef $guard;
15+
is $cnt, 1;
16+
17+
done_testing;

0 commit comments

Comments
 (0)