File Coverage

blib/lib/Test/SpellCheck/Plugin/Lang/EN/US.pm
Criterion Covered Total %
statement 26 26 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod 0 2 0.0
total 34 36 94.4


line stmt bran cond sub pod time code
1             package Test::SpellCheck::Plugin::Lang::EN::US;
2              
3 1     1   223179 use strict;
  1         2  
  1         40  
4 1     1   5 use warnings;
  1         4  
  1         55  
5 1     1   19 use 5.020;
  1         5  
6 1     1   611 use experimental qw( signatures );
  1         4699  
  1         7  
7 1     1   812 use File::ShareDir::Dist qw( dist_share );
  1         1303  
  1         5  
8 1     1   1042 use Path::Tiny qw( path );
  1         17519  
  1         314  
9              
10             # ABSTRACT: US English language dictionary for Test::SpellCheck
11             our $VERSION = '0.03'; # VERSION
12              
13              
14             sub new ($class)
15 1     1 0 311776 {
  1         8  
  1         3  
16 1         7 bless {
17             root => path(dist_share('Test-SpellCheck-Plugin-Lang-EN-US')),
18             }, $class;
19             }
20              
21             sub primary_dictionary ($self)
22 1     1 0 8411 {
  1         3  
  1         2  
23             return (
24 2         199 map { $_->stringify } (
25             $self->{root}->child('en/us/en_US.aff'),
26 1         13 $self->{root}->child('en/us/en_US.dic'),
27             )
28             );
29             }
30              
31             1;
32              
33             __END__