blib/lib/Carp/Always/Color.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 8 | 9 | 88.8 |
branch | 1 | 2 | 50.0 |
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 13 | 15 | 86.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Carp::Always::Color; | ||||||
2 | BEGIN { | ||||||
3 | 1 | 1 | 25996 | $Carp::Always::Color::AUTHORITY = 'cpan:DOY'; | |||
4 | } | ||||||
5 | { | ||||||
6 | $Carp::Always::Color::VERSION = '0.07'; | ||||||
7 | } | ||||||
8 | 1 | 1 | 8 | use strict; | |||
1 | 1 | ||||||
1 | 30 | ||||||
9 | 1 | 1 | 4 | use warnings; | |||
1 | 2 | ||||||
1 | 40 | ||||||
10 | # ABSTRACT: Carp::Always, but with color | ||||||
11 | |||||||
12 | BEGIN { | ||||||
13 | 1 | 50 | 1 | 30 | if (-t *STDERR) { | ||
14 | 0 | require Carp::Always::Color::Term; | |||||
15 | } | ||||||
16 | } | ||||||
17 | |||||||
18 | |||||||
19 | 1; | ||||||
20 | |||||||
21 | __END__ |