blib/lib/Term/ExtendedColor/Dzen.pm

filter: Statementstmt 68.0% 17 / 25 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 100% 2 / 2 totaltotal 63.1% 24 / 38 CC 3 SCAR 11.7
CC
3
Cov
59%
fgd
6.0
bgd
6.0
BEGIN
1.0
CRAP 3.2
↑ Summary
1 package Term::ExtendedColor::Dzen;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 BEGIN {
6 1 ▶ use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶ use vars qw($VERSION @ISA @EXPORT_OK %EXPORT_TAGS);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶ $VERSION = '0.001';
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 @ISA = qw(Exporter);
11  
12 1 @EXPORT_OK = qw(
13 fgd
14 bgd
15 );
16  
17 1 %EXPORT_TAGS = (
18 attributes => [ qw(fgd bgd) ],
19 all => [ @EXPORT_OK ],
20 );
21 }
22  
23  
24 sub fgd {
25 0 ▶ if(!@_) {
Subroutine fgd: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
unless (@_) 0 0 0
26 0 return "^fg()"
27 }
28 0 my ($color, $data) = @_;
29 0 return "^fg($color)$data^fg()";
30 }
31  
32 sub bgd {
33 0 ▶ if(!@_) {
Subroutine bgd: not called CC=2 SCAR=17.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
unless (@_) 0 0 0
34 0 return "^bg()"
35 }
36 0 my ($color, $data) = @_;
37 0 return "^bg($color)$data^bg()";
38 }
39  
40  
41  
42  
43 1 1;
44  
45 __END__
↑ Summary