Skip to content

Commit

Permalink
return false from null adapter is_xxx methods - RT #64164
Browse files Browse the repository at this point in the history
  • Loading branch information
jonswar committed Mar 23, 2011
1 parent a509ab4 commit 5b11153
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ Revision history for Log-Any
0.12 Feb 12, 2010

* Fixes
- Return false from null adapter is_xxx methods - RT #64164 - Chip Salzenberg
- Eliminate 'subroutine redefined' warning in case Log::Any::Adapter loaded before
Log::Any::Test


* Implementation
- Migrate to Dist::Zilla

Expand Down
5 changes: 4 additions & 1 deletion t/valid-methods.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!perl
use Test::Simple tests => 84;
use Test::Simple tests => 87;
use Log::Any qw($log);
use strict;
use warnings;
Expand All @@ -16,6 +16,9 @@ foreach my $log (@logs) {
foreach my $method ( Log::Any->detection_methods() ) {
ok( !$log->$method, "!$method" );
}
ok(
scalar( map { $log->$_ } Log::Any->detection_methods() ) ==
Log::Any->detection_methods() );
foreach my $method ( Log::Any->logging_methods() ) {
ok( $log->$method("") || 1, "$method runs" );
my $methodf = $method . "f";
Expand Down

0 comments on commit 5b11153

Please sign in to comment.