File Coverage

lib/Test/Builder/Tester/Color.pm
Criterion Covered Total %
statement 3 4 75.0
branch n/a
condition n/a
subroutine 1 2 50.0
pod n/a
total 4 6 66.6


line stmt bran cond sub pod time code
1             package Test::Builder::Tester::Color;
2              
3 1     1   347 use strict;
  1         2  
  1         84  
4             our $VERSION = '1.302180';
5              
6             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             sub import {
31 0     0     Test::Builder::Tester::color(1);
32             }
33              
34             =head1 AUTHOR
35              
36             Copyright Mark Fowler Emark@twoshortplanks.comE 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, L
48              
49             =cut
50              
51             1;