File: warnings_once.t

package info (click to toggle)
libmoosex-singleton-perl 0.29-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 164 kB
  • ctags: 12
  • sloc: perl: 279; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 346 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# test script for: https://rt.cpan.org/Ticket/Display.html?id=46086
use strict;
use warnings;

use Test::More qw(no_plan);
use Test::Requires {
    'Test::NoWarnings' => 0.01
};

BEGIN {
    package OnlyUsedOnce;
    use strict;
    use warnings;
    use MooseX::Singleton;
}

BEGIN { OnlyUsedOnce->initialize; }

my $s = OnlyUsedOnce->instance;