lib/Test/Builder/Tester/Color.pm

filter: Statementstmt 85.7% 6 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod n/a totaltotal 77.7% 7 / 9 CC 1 SCAR 4.1
CC
1
Cov
86%
import
2.0
BEGIN
1.0
CRAP 1.5
« lib/Test/Tester/Delegate.pm ↑ Summary blib/lib/Test2/Event/Skip.pm »
1 package Test::Builder::Tester::Color;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 our $VERSION = '1.302226';
5  
6 1 require Test::Builder::Tester;
7  
8  
9 =head1 NAME
10  
11 Test::Builder::Tester::Color - turn on colour in Test::Builder::Tester
12  
13 =head1 SYNOPSIS
14  
15 When running a test script
16  
17 perl -MTest::Builder::Tester::Color test.t
18  
19 =head1 DESCRIPTION
20  
21 Importing this module causes the subroutine color in Test::Builder::Tester
22 to be called with a true value causing colour highlighting to be turned
23 on in debug output.
24  
25 The sole purpose of this module is to enable colour highlighting
26 from the command line.
27  
28 =cut
29  
30 0 ▶sub import {
Subroutine import: not called CC=1 SCAR=6.9
31 0 Test::Builder::Tester::color(1);
32 }
33  
34 =head1 AUTHOR
35  
36 Copyright Mark Fowler E<lt>mark@twoshortplanks.comE<gt> 2002.
37  
38 This program is free software; you can redistribute it
39 and/or modify it under the same terms as Perl itself.
40  
41 =head1 BUGS
42  
43 This module will have no effect unless Term::ANSIColor is installed.
44  
45 =head1 SEE ALSO
46  
47 L<Test::Builder::Tester>, L<Term::ANSIColor>
48  
49 =cut
50  
51 1 1;
« lib/Test/Tester/Delegate.pm ↑ Summary blib/lib/Test2/Event/Skip.pm »