Wikibase/Datatype/Lexeme.pm

filter: Statementstmt 100% 44 / 44 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 1 totaltotal 98.1% 52 / 53 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Wikibase/Datatype/Mediainfo.pm ↑ Summary Test/Shared/Fixture/Wikibase/Datatype/Form/Wikidata/DogCzechSingular.pm »
1 package Wikibase::Datatype::Lexeme;
2  
3 18 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 18 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 18 ▶use Error::Pure qw(err);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 18 ▶use Mo qw(build default is);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 18 ▶use Mo::utils qw(check_number);
Subroutine BEGIN: called CC=1 SCAR=0.0
9 18 ▶use Mo::utils::Array qw(check_array_object);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 18 ▶use Wikibase::Datatype::Utils qw(check_entity);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 18 our $VERSION = 0.40;
13  
14 18 has forms => (
15 default => [],
16 is => 'ro',
17 );
18  
19 18 has id => (
20 is => 'ro',
21 );
22  
23 18 has language => (
24 is => 'ro',
25 );
26  
27 18 has lastrevid => (
28 is => 'ro',
29 );
30  
31 18 has lemmas => (
32 default => [],
33 is => 'ro',
34 );
35  
36 18 has lexical_category => (
37 is => 'ro',
38 );
39  
40 18 has modified => (
41 is => 'ro',
42 );
43  
44 18 has ns => (
45 default => 146,
46 is => 'ro',
47 );
48  
49 18 has page_id => (
50 is => 'ro',
51 );
52  
53 18 has senses => (
54 default => [],
55 is => 'ro',
56 );
57  
58 18 has statements => (
59 default => [],
60 is => 'ro',
61 );
62  
63 18 has title => (
64 is => 'ro',
65 );
66  
67 27 ▶sub BUILD {
Subroutine BUILD: called CC=1 SCAR=0.0
Pod undocumented
68 27 my $self = shift;
69  
70 # Check forms.
71 27 check_array_object($self, 'forms', 'Wikibase::Datatype::Form');
72  
73 # Check lemmas.
74 27 check_array_object($self, 'lemmas', 'Wikibase::Datatype::Value::Monolingual');
75  
76 # Check lexical category.
77 27 check_entity($self, 'lexical_category');
78  
79 # Check language.
80 27 check_entity($self, 'language');
81  
82 # Check page id.
83 27 check_number($self, 'page_id');
84  
85 # Check senses.
86 27 check_array_object($self, 'senses', 'Wikibase::Datatype::Sense');
87  
88 # Check statements.
89 27 check_array_object($self, 'statements', 'Wikibase::Datatype::Statement');
90  
91 27 return;
92 }
93  
94 18 1;
95  
96 __END__
« Wikibase/Datatype/Mediainfo.pm ↑ Summary Test/Shared/Fixture/Wikibase/Datatype/Form/Wikidata/DogCzechSingular.pm »