ColorTheme/Data/Dump/Color/Light.pm

filter: Statementstmt 88.2% 15 / 17 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 72.0% 18 / 25 CC 3 SCAR 18.7
CC
3
Cov
71%
_ansi16
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 6.5
« Data/Dump/Color.pm ↑ Summary ColorTheme/Data/Dump/Color/Default16.pm »
1 package ColorTheme::Data::Dump::Color::Light;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use parent 'ColorThemeBase::Static::FromStructColors';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Term::ANSIColor;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
8 1 our $DATE = '2025-02-21'; # DATE
9 1 our $DIST = 'Data-Dump-Color'; # DIST
10 1 our $VERSION = '0.251'; # VERSION
11  
12 0 ▶sub _ansi16 {
Subroutine _ansi16: not called CC=3 SCAR=24.8
13 0 my ($fg, $bg) = @_;
14 return {
15 0 ▶ (defined $fg ? (ansi_fg=>color($fg)) : ()),
Branch: 2 branches
BranchTrueFalseTotal
defined $fg ? : 0 0 0
defined $bg ? : 0 0 0
16 (defined $bg ? (ansi_bg=>color($bg)) : ()),
17 };
18 }
19  
20 1 our %THEME = (
21 v => 2,
22 items => {
23 Regexp => 'ddbb00',
24 undef => 'ff6666',
25 number => 'aaaaff', # floats can have different color
26 float => '00ffff',
27 string => 'ffff88',
28 object => '00ff00',
29 glob => '00dddd',
30 key => 'ff77ff',
31 comment => '00cc00',
32 keyword => '', # blue
33 symbol => '00dddd',
34 linum => '808080',
35 },
36 );
37  
38 #use Data::Dump; dd \%THEME;
39  
40 1 1;
41 # ABSTRACT: Light color theme for Data::Dump::Color (RGB 24bit)
42  
43 __END__
« Data/Dump/Color.pm ↑ Summary ColorTheme/Data/Dump/Color/Default16.pm »