<commit_before>#!perl -T

#
# $Id$
#

use Test::More tests => 9;

use Log::Fine;
use Log::Fine::Handle::Console;

# set message
my $msg =
"Stop by this disaster town, we put our eyes to the sun and say 'Hello!'";

# add a handle.  Note we use the default formatter.
my $handle = Log::Fine::Handle::Console->new();

{

        eval "use Test::Output 0.10";

        plan skip_all =>
                "Test::Output 0.10 or above required for testing Console output"
                if $@;

        # get a logger
        my $log = Log::Fine->getLogger("handleconsole0");

        ok(ref $log eq "Log::Fine::Logger");

        # do some validation
        ok($handle->isa("Log::Fine::Handle"));

        # these should be set to their default values<commit_msg>Skip tests if Test::Output isn't installed<commit_after>#!perl -T

#
# $Id$
#

use Test::More;

use Log::Fine;
use Log::Fine::Handle::Console;

# set message
my $msg =
"Stop by this disaster town, we put our eyes to the sun and say 'Hello!'";

# add a handle.  Note we use the default formatter.
my $handle = Log::Fine::Handle::Console->new();

{

        # see if we have Test::Output installed
        eval "use Test::Output 0.10";

        if ($@) {
                plan skip_all =>
"Test::Output 0.10 or above required for testing Console output"
                        if $@;
        } else {
                plan tests => 9;
        }

        # get a logger
        my $log = Log::Fine->getLogger("handleconsole0");

        ok(ref $log eq "Log::Fine::Logger");

        # do some validation
        ok($handle->isa("Log::Fine::Handle"));

        # these should be set to their default values
{'fraction_non_alphanumeric': 0.13811821471652594, 'fraction_numerical': 0.009650180940892641, 'mean_word_length': 2.378818737270876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7182573', 'n_tokens_mistral': 532, 'n_tokens_neox': 487, 'n_words': 173}