blib/lib/Data/Text/Simple.pm

filter: Statementstmt 77.7% 7 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 83.3% 10 / 12 CC 1 SCAR 0.9
CC
1
Cov
78%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
↑ Summary
1 package Data::Text::Simple;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶use Mo qw(build is);
Subroutine BEGIN: called CC=1 SCAR=2.6
7 use Mo::utils qw(check_required);
8 use Mo::utils::Language 0.05 qw(check_language_639_1);
9 use Mo::utils::Number qw(check_positive_natural);
10  
11 our $VERSION = 0.03;
12  
13 has id => (
14 is => 'ro',
15 );
16  
17 has lang => (
18 is => 'ro',
19 );
20  
21 has text => (
22 is => 'ro',
23 );
24  
25 sub BUILD {
26 my $self = shift;
27  
28 # Check id.
29 check_positive_natural($self, 'id');
30  
31 # Check lang.
32 check_language_639_1($self, 'lang');
33  
34 # Check text.
35 check_required($self, 'text');
36  
37 return;
38 }
39  
40 1;
41  
42 __END__
↑ Summary