projects
/
gitmo/MooseX-Singleton.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tab->space
[gitmo/MooseX-Singleton.git]
/
t
/
warnings_once.t
1
# test script for: https://rt.cpan.org/Ticket/Display.html?id=46086
2
use strict;
3
use warnings;
4
5
use Test::More qw(no_plan);
6
use Test::Requires {
7
'Test::NoWarnings' => 0.01
8
};
9
10
BEGIN {
11
package OnlyUsedOnce;
12
use strict;
13
use warnings;
14
use MooseX::Singleton;
15
}
16
17
BEGIN { OnlyUsedOnce->initialize; }
18
19
my $s = OnlyUsedOnce->instance;