diff options
author | doy <doy@tozt.net> | 2008-11-26 14:27:34 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2008-11-26 14:27:34 -0500 |
commit | af8acbc807561e74e6292b18b0487c3c90246942 (patch) | |
tree | a7592e9eb452b976e07fe2050105456f6e7e474d | |
parent | a5ea4cbf01fefcc439d5f9429a193ec659a726af (diff) | |
download | log-dispatch-channels-af8acbc807561e74e6292b18b0487c3c90246942.tar.gz log-dispatch-channels-af8acbc807561e74e6292b18b0487c3c90246942.zip |
formatting
-rw-r--r-- | t/001-channels-and-outputs.t | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/t/001-channels-and-outputs.t b/t/001-channels-and-outputs.t index 2ed856e..832af4d 100644 --- a/t/001-channels-and-outputs.t +++ b/t/001-channels-and-outputs.t @@ -10,19 +10,19 @@ my $logger = Log::Dispatch::Channels->new; for my $channel (1..3) { $logger->add_channel($channel); $logger->add(Log::Dispatch::Null->new(name => $channel, - min_level => 'debug'), + min_level => 'debug'), channels => $channel); } $logger->add(Log::Dispatch::Null->new(name => 'all', - min_level => 'debug')); + min_level => 'debug')); $logger->add(Log::Dispatch::Null->new(name => 'one_and_two', - min_level => 'debug'), + min_level => 'debug'), channels => [qw/1 2/]); for my $channel (1..3) { isa_ok($logger->channel($channel), 'Log::Dispatch'); - isa_ok($logger->output($channel), 'Log::Dispatch::Null'); + isa_ok($logger->output($channel), 'Log::Dispatch::Null'); } isa_ok($logger->channel('1')->output('all'), 'Log::Dispatch::Null'); @@ -31,7 +31,8 @@ my $set = set(); for my $channel (1..3) { $set->add(shallow($logger->channel($channel)->output('all'))); } -cmp_deeply([$all_output], $set, "output 'all' is shared between all channels"); +cmp_deeply([$all_output], $set, + "output 'all' is shared between all channels"); is($logger->channel('3')->output('one_and_two'), undef, "output 'one_and_two' isn't added to channel '3'"); |