File Coverage

blib/lib/ColorTheme/Test/Static.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package ColorTheme::Test::Static;
2              
3 2     2   441045 use strict;
  2         6  
  2         107  
4 2     2   13 use warnings;
  2         5  
  2         137  
5 2     2   12 use parent 'ColorThemeBase::Static::FromStructColors';
  2         4  
  2         14  
6              
7 2     2   1480 use Color::RGB::Util 'rand_rgb_color';
  2         12398  
  2         491  
8              
9             our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
10             our $DATE = '2024-07-17'; # DATE
11             our $DIST = 'ColorThemeBase-Static'; # DIST
12             our $VERSION = '0.009'; # VERSION
13              
14             our %THEME = (
15             v => 2,
16             summary => 'A static color theme',
17             items => {
18             color1 => 'ff0000',
19             color2 => '00ff00',
20             color3 => {bg=>'0000ff'},
21             color4 => {fg=>'000000', bg=>'ffffff'},
22             color5 => sub {
23             +{
24             summary => 'A random foreground color',
25             fg => rand_rgb_color(),
26             };
27             },
28             },
29             );
30              
31             1;
32             # ABSTRACT: A static color theme
33              
34             __END__