NAME
Log::Shiras::Report::Test2Diag - Log::Shiras Test2 diag output
SYNOPSIS
use Test2::Bundle::Extended qw( !meta );
use Test2::Plugin::UTF8;
plan( ? );
use Log::Shiras::Report::Test2Diag;
use Log::Shiras::Switchboard;
my( $switchboard, $test_class );
ok( lives{ my $switchboard = Log::Shiras::Switchboard->get_operator(
name_space_bounds =>{
UNBLOCK =>{
log_file => 'warn',
},
},
reports =>{
log_file =>[ Log::Shiras::Report::Test2Diag->new ], #Raise visibility to the actions being tested
},) }, "Start the switchboard");
DESCRIPTION
This is a simple Report class that can be used to provide troubleshooting output to Test2 tests with Log::Shiras content. The goal is for the messages to integrate with the TAP format.
Attributes
None
Methods
new
Definition: This creates a new instance of the Test2Note report class.
Returns: A report class to be stored in the switchboard.
add_line( $ref )
Definition: This only accepts a switchboard scrubbed message ref.
Returns: 1 (or dies)
SUPPORT
TODO
1. Nothing currently
AUTHOR
COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.