File: release-backcompat.t

package info (click to toggle)
liblog-any-perl 1.718-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 448 kB
  • sloc: perl: 1,516; makefile: 11
file content (21 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!perl

BEGIN {
  unless ($ENV{RELEASE_TESTING}) {
    print qq{1..0 # SKIP these tests are for release candidate testing\n};
    exit
  }
}

#
# Test old Log::Any->set_adapter API
#
use strict;
use warnings;
use Test::More tests => 2;

use Log::Any qw($log), proxy_class => 'Test';
Log::Any->set_adapter('Test', dummy_param => 1);
$log->error("bleah");
$log->contains_ok( qr/bleah/ );
is ( $log->adapter->{dummy_param}, 1, "adapter parameters set" );