File: global.t

package info (click to toggle)
liblog-fast-perl 2.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 164 kB
  • sloc: perl: 324; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 400 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use warnings;
use strict;
use Test::More;

use Log::Fast;


plan tests => 4;


my $LOG = Log::Fast->global();
like ref $LOG, qr/\ALog::Fast::_\d+\z/,             'global created';
is $LOG, Log::Fast->global(),                       'global is same';
like ref Log::Fast->new(), qr/\ALog::Fast::_\d+\z/, 'local created';
isnt $LOG, Log::Fast->new(),                        'global differ from local';