File Coverage

blib/lib/Data/Printer/Theme/Classic.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 0 1 0.0
total 10 11 90.9


line stmt bran cond sub pod time code
1             package Data::Printer::Theme::Classic;
2             # classic Data::Printer colors, for nostalgic users :D
3 1     1   5 use strict;
  1         2  
  1         25  
4 1     1   4 use warnings;
  1         2  
  1         116  
5              
6             sub colors {
7             return {
8 1     1 0 22 array => 'bright_white', # array index numbers
9             number => 'bright_blue', # numbers
10             string => 'bright_yellow', # strings
11             class => 'bright_green', # class names
12             method => 'bright_green', # method names
13             undef => 'bright_red', # the 'undef' value
14             hash => 'magenta', # hash keys
15             regex => 'yellow', # regular expressions
16             code => 'green', # code references
17             glob => 'bright_cyan', # globs (usually file handles)
18             vstring => 'bright_blue', # version strings (v5.16.0, etc)
19             lvalue => '', # lvalue label
20             format => '', # format type
21             repeated => 'white on_red', # references to seen values
22             caller_info => 'bright_cyan', # details on what's being printed
23             weak => 'cyan', # weak references
24             tainted => 'red', # tainted content
25             unicode => '', # utf8 flag
26             escaped => 'bright_red', # escaped characters (\t, \n, etc)
27             brackets => '', # (), {}, []
28             separator => '', # the "," between hash pairs, array elements, etc
29             quotes => '',
30             unknown => 'bright_yellow on_blue', # any (potential) data type unknown to Data::Printer
31             };
32             }
33              
34             1;
35             __END__