3 use Test
::More tests
=> 4;
6 use_ok
('Thrasher::Log', qw(logger debug dies));
7 $Thrasher::Log
::SILENT
= 1;
10 my $rand_num = int rand 100000;
11 my $test_msg = "test message $rand_num";
13 my ($fn, $line, $msg) = logger
($test_msg);
17 "Valid message call");
19 is
(debug
("$test_msg"),
23 $Thrasher::Log
::DEBUG
= 1;
25 $test_msg .= int rand 1000000;
26 ($fn, $line, $msg) = logger
($test_msg);
32 # TODO: flip dies subroutine to use Error and test on try/throw