File Coverage

blib/lib/Test/Shared/Fixture/Wikibase/Datatype/Sense/Wikidata/Dog.pm
Criterion Covered Total %
statement 25 25 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod 1 1 100.0
total 34 34 100.0


line stmt bran cond sub pod time code
1             package Test::Shared::Fixture::Wikibase::Datatype::Sense::Wikidata::Dog;
2              
3 19     19   351510 use base qw(Wikibase::Datatype::Sense);
  19         72  
  19         8546  
4 19     19   154 use strict;
  19         42  
  19         392  
5 19     19   114 use warnings;
  19         57  
  19         454  
6              
7 19     19   9730 use Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::Image::Dog;
  19         61  
  19         656  
8 19     19   8957 use Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::ItemForThisSense::Dog;
  19         57  
  19         629  
9 19     19   1427 use Unicode::UTF8 qw(decode_utf8);
  19         1561  
  19         873  
10 19     19   1333 use Wikibase::Datatype::Value::Monolingual;
  19         71  
  19         2366  
11              
12             our $VERSION = 0.30;
13              
14             sub new {
15 15     15 1 439 my $class = shift;
16              
17 15         114 my @params = (
18             'glosses' => [
19             Wikibase::Datatype::Value::Monolingual->new(
20             'language' => 'en',
21             'value' => 'domesticated mammal related to the wolf',
22             ),
23             Wikibase::Datatype::Value::Monolingual->new(
24             'language' => 'cs',
25             'value' => decode_utf8('psovitá šelma chovaná jako domácí zvíře'),
26             ),
27             ],
28             # https://www.wikidata.org/wiki/Lexeme:L469
29             'id' => 'L469-S1',
30             'statements' => [
31             Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::Image::Dog->new,
32             Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::ItemForThisSense::Dog->new,
33             ],
34             );
35              
36 15         158 my $self = $class->SUPER::new(@params);
37              
38 15         673 return $self;
39             }
40              
41             1;
42              
43             __END__