1Test::Run::Output(3) User Contributed Perl Documentation Test::Run::Output(3)
2
3
4
6 Test::Run::Output - Base class for outputting messages to the user in a
7 test harmess.
8
10 BUILD
11 For Moose.
12
13 $self->print_message($msg)
14 Emits $msg followed by a newline.
15
16 $self->print_ml($msg)
17 If ml() is defined, print it and $msg. If not - do nothing.
18
19 $self->print_leader({filename => $filename, width => $width})
20 Prints the file leader for $filename and $width.
21
22 $self->print_ml_less($msg)
23 Calls print_ml() with $msg every second or less.
24
25 _mk_leader
26 my($leader, $ml) = $self->_mk_leader($test_file, $width);
27
28 Generates the 't/foo........' leader for the given $test_file as well
29 as a similar version which will overwrite the current line (by use of
30 \r and such). $ml may be empty if Test::Run doesn't think you're on
31 TTY.
32
33 The $width is the width of the "yada/blah.." string.
34
36 Shlomi Fish, <http://www.shlomifish.org/>
37
39 This file is licensed under the MIT X11 License:
40
41 http://www.opensource.org/licenses/mit-license.php
42
44 Test::Run::Obj, Test::Run::Core, Test::Run::Plugin::CmdLine::Output.
45
46
47
48perl v5.30.1 2020-01-30 Test::Run::Output(3)