File Coverage

blib/lib/ColorTheme/Data/Dump/Color/Default256.pm
Criterion Covered Total %
statement 8 8 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 11 11 100.0


line stmt bran cond sub pod time code
1             package ColorTheme::Data::Dump::Color::Default256;
2              
3 1     1   458046 use strict;
  1         3  
  1         51  
4 1     1   6 use parent 'ColorThemeBase::Static::FromStructColors';
  1         2  
  1         15  
5              
6             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
7             our $DATE = '2025-02-21'; # DATE
8             our $DIST = 'Data-Dump-Color'; # DIST
9             our $VERSION = '0.251'; # VERSION
10              
11             sub _ansi256fg {
12 12     12   26 my $code = shift;
13 12         65 return {ansi_fg=>"\e[38;5;${code}m"};
14             }
15              
16             our %THEME = (
17             v => 2,
18             items => {
19             Regexp => _ansi256fg(135),
20             undef => _ansi256fg(124),
21             number => _ansi256fg(27),
22             float => _ansi256fg(51),
23             string => _ansi256fg(226),
24             object => _ansi256fg(10),
25             glob => _ansi256fg(10),
26             key => _ansi256fg(202),
27             comment => _ansi256fg(34),
28             keyword => _ansi256fg(21),
29             symbol => _ansi256fg(51),
30             linum => _ansi256fg(10),
31             },
32             );
33              
34             1;
35             # ABSTRACT: Default color theme for Data::Dump::Color (256 color)
36              
37             __END__