File: 06_configurator.t

package info (click to toggle)
liblog-dispatch-config-perl 1.04-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 224 kB
  • sloc: perl: 233; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use Test::More tests => 3;

use Log::Dispatch::Config;
use Log::Dispatch::Configurator;

my $config = Log::Dispatch::Configurator->new("/dev/null");
isa_ok $config, 'Log::Dispatch::Configurator';
is $config->{file}, '/dev/null';

Log::Dispatch::Config->configure($config);

eval {
    my $disp = Log::Dispatch::Config->instance;
};
like $@, qr/get_attrs_global is/, $@;