Test/Shared/Fixture/Wikibase/Datatype/Form/Wikidata/DogCzechSingular.pm

filter: Statementstmt 100% 33 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 100% 1 / 1 totaltotal 100% 44 / 44 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Wikibase/Datatype/Lexeme.pm ↑ Summary Test/Shared/Fixture/Wikibase/Datatype/Item/Wikidata/Dog.pm »
1 package Test::Shared::Fixture::Wikibase::Datatype::Form::Wikidata::DogCzechSingular;
2  
3 19 ▶use base qw(Wikibase::Datatype::Form);
Subroutine BEGIN: called CC=1 SCAR=0.0
4 19 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 19 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 19 ▶use Unicode::UTF8 qw(decode_utf8);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 19 ▶use Wikibase::Datatype::Statement;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 19 ▶use Wikibase::Datatype::Snak;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 19 ▶use Wikibase::Datatype::Value::Item;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 19 ▶use Wikibase::Datatype::Value::Monolingual;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 19 ▶use Wikibase::Datatype::Value::String;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 19 our $VERSION = 0.40;
15  
16 15 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
17 15 my $class = shift;
18  
19 15 my @params = (
20 'grammatical_features' => [
21 # singular
22 Wikibase::Datatype::Value::Item->new(
23 'value' => 'Q110786',
24 ),
25 # nominative case
26 Wikibase::Datatype::Value::Item->new(
27 'value' => 'Q131105',
28 ),
29 ],
30 'id' => 'L469-F1',
31 'representations' => [
32 Wikibase::Datatype::Value::Monolingual->new(
33 'language' => 'cs',
34 'value' => 'pes',
35 ),
36 ],
37 'statements' => [
38 Wikibase::Datatype::Statement->new(
39 # IPA transcription (P898)
40 'snak' => Wikibase::Datatype::Snak->new(
41 'datatype' => 'string',
42 'datavalue' => Wikibase::Datatype::Value::String->new(
43 'value' => decode_utf8('pɛs'),
44 ),
45 'property' => 'P898',
46 ),
47 ),
48 ],
49 );
50  
51 15 my $self = $class->SUPER::new(@params);
52  
53 15 return $self;
54 }
55  
56 19 1;
57  
58 __END__
« Wikibase/Datatype/Lexeme.pm ↑ Summary Test/Shared/Fixture/Wikibase/Datatype/Item/Wikidata/Dog.pm »