File Coverage

lib/Color/Library/Dictionary/XKCD.pm
Criterion Covered Total %
statement 23 24 95.8
branch n/a
condition n/a
subroutine 8 9 88.8
pod n/a
total 31 33 93.9


line stmt bran cond sub pod time code
1 2     2   35421 use 5.006; # our, __PACKAGE__, etc
  2         7  
  2         94  
2 2     2   10 use strict;
  2         3  
  2         78  
3 2     2   15 use warnings;
  2         3  
  2         128  
4              
5             package Color::Library::Dictionary::XKCD;
6              
7             our $VERSION = '1.000000';
8              
9             # ABSTRACT: Colors determined by the XKCD Color Survey.
10              
11             our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
12              
13 2     2   5801 use Moo qw( extends );
  2         27510  
  2         11  
14 2     2   3185 use Color::Library 0.021;
  2         143974  
  2         65  
15 2     2   1123 use File::ShareDir qw( dist_file );
  2         10465  
  2         295  
16             extends 'Color::Library::Dictionary';
17              
18             __PACKAGE__->_register_dictionary;
19              
20             sub _load_color_list {
21 1     1   682684 my $file = dist_file( 'Color-Library-Dictionary-XKCD', 'color_list.pl' );
22 1         13378 return [ do $file ];
23             }
24              
25             sub _description {
26             return {
27 0     0     'subtitle' => 'Colors determined by the XKCD Color Survey',
28             'title' => 'XKCD',
29             'description' => <<"_EOF_",
30             The web comic XKCD[http://xkcd.com] ran a rather wide-spread color survey
31             to gauge the social perception of colors, at least, with regard to screen print spaces.
32              
33             The findings of this survey can be found here:
34              
35             [http://blog.xkcd.com/2010/05/03/color-survey-results/]
36             _EOF_
37             };
38             }
39 2     2   15 no Moo;
  2         2  
  2         15  
40              
41             1;
42              
43             __END__