ColorTheme/Text/ANSITable/Standard/GradationWhiteBG.pm

filter: Statementstmt 92.0% 23 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 83.8% 26 / 31 CC 2 SCAR 11.0
CC
2
Cov
85%
__ANON__
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« ColorTheme/Text/ANSITable/Standard/Gradation.pm ↑ Summary auto/share/dist/Text-ANSITable/examples/demo1.pl »
1 # no code
2 ## no critic: TestingAndDebugging::RequireUseStrict
3 package ColorTheme::Text::ANSITable::Standard::GradationWhiteBG;
4  
5 4 our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
6 4 our $DATE = '2025-02-24'; # DATE
7 4 our $DIST = 'Text-ANSITable'; # DIST
8 4 our $VERSION = '0.610'; # VERSION
9  
10 4 ▶use parent 'ColorThemeBase::Static::FromStructColors';
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 4 ▶use ColorTheme::Text::ANSITable::Standard::Gradation;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 4 ▶use Function::Fallback::CoreOrPP qw(clone);
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 4 our %THEME = %{ clone(\%ColorTheme::Text::ANSITable::Standard::Gradation::THEME) };
16 4 $THEME{summary} = 'Gradation (for terminal with white background)';
17  
18 4 $THEME{args}{border1_fg}{default} = '000000';
19 4 $THEME{args}{border2_fg}{default} = 'cccccc';
20  
21 4 $THEME{items}{header_bg} = 'cccccc';
22 4 $THEME{items}{num_data} = '006666';
23 4 $THEME{items}{date_data} = '666600';
24 0 ▶$THEME{items}{bool_data} = sub {
Subroutine __ANON__: not called CC=2 SCAR=17.9
25 0 my ($self, $name, $args) = @_;
26 0 ▶ $args->{orig_data} ? '00cc00' : 'cc0000';
Branch: 1 branch
BranchTrueFalseTotal
$args->{'orig_data'} ? : 0 0 0
27 4 };
28  
29 4 1;
30 # ABSTRACT: Gradation (for terminal with white background)
31  
32 __END__
« ColorTheme/Text/ANSITable/Standard/Gradation.pm ↑ Summary auto/share/dist/Text-ANSITable/examples/demo1.pl »