File: yell-loudly.t

package info (click to toggle)
liblog-contextual-perl 0.007000-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 320 kB
  • ctags: 75
  • sloc: perl: 615; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use strict;
use warnings;

use Test::More tests => 2;
use Test::Fatal;
use Log::Contextual qw(:log);

like(
   exception { Log::Contextual::set_logger() },
   qr/set_logger is no longer a direct sub in Log::Contextual/,
   'Log::Contextual::set_logger dies',
);

like(
   exception { Log::Contextual::with_logger() },
   qr/with_logger is no longer a direct sub in Log::Contextual/,
   'Log::Contextual::with_logger dies',
);