SpellCheck/Plugin/Dictionary.pm

filter: Statementstmt 100% 20 / 20 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 2 / 2 totaltotal 100% 33 / 33 CC 3 SCAR 5.1
CC
3
Cov
100%
new
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.7
« SpellCheck/INI.pm ↑ Summary SpellCheck/Plugin/PerlPOD.pm »
1 package Test::SpellCheck::Plugin::Dictionary;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use 5.026;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use experimental qw( signatures );
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Carp qw( croak );
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 # ABSTRACT: Test::SpellCheck for adding additional dictionaries
10 2 our $VERSION = '0.02'; # VERSION
11  
12  
13 5 ▶sub new ($class, %args)
Subroutine new: called CC=3 SCAR=11.0
Pod documented
14 {
15 5 ▶ croak "must specify dictionary" unless defined $args{dictionary};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $args{"dictionary"} 1 4 5
16 4 ▶ croak "dictionary $args{dictionary} not found" unless -f $args{dictionary};
Branch: 1 branch
BranchTrueFalseTotal
unless -f $args{"dictionary"} 1 3 4
17 3 bless { dictionary => $args{dictionary} }, $class;
18 }
19  
20 3 ▶sub dictionary ($self)
Subroutine dictionary: called CC=1 SCAR=0.0
Pod documented
21 {
22 3 return $self->{dictionary};
23 }
24  
25 2 1;
26  
27 __END__
« SpellCheck/INI.pm ↑ Summary SpellCheck/Plugin/PerlPOD.pm »