File Coverage

blib/lib/Test/Shared/Fixture/Wikibase/Datatype/Statement/Wikidata/InstanceOf/CommonLivingOrganism.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 1 1 100.0
total 26 26 100.0


line stmt bran cond sub pod time code
1             package Test::Shared::Fixture::Wikibase::Datatype::Statement::Wikidata::InstanceOf::CommonLivingOrganism;
2              
3 6     6   343298 use base qw(Wikibase::Datatype::Statement);
  6         39  
  6         2867  
4 6     6   59 use strict;
  6         25  
  6         130  
5 6     6   30 use warnings;
  6         35  
  6         135  
6              
7 6     6   2730 use Wikibase::Datatype::Snak;
  6         23  
  6         241  
8 6     6   2628 use Wikibase::Datatype::Value::Item;
  6         35  
  6         928  
9              
10             our $VERSION = 0.29;
11              
12             sub new {
13 2     2 1 143 my $class = shift;
14              
15 2         18 my @params = (
16             'snak' => Wikibase::Datatype::Snak->new(
17             'datatype' => 'wikibase-item',
18             'datavalue' => Wikibase::Datatype::Value::Item->new(
19             'value' => 'Q55983715',
20             ),
21             'property' => 'P31',
22             ),
23             'property_snaks' => [
24             Wikibase::Datatype::Snak->new(
25             'datatype' => 'wikibase-item',
26             'datavalue' => Wikibase::Datatype::Value::Item->new(
27             'value' => 'Q20717272',
28             ),
29             'property' => 'P642',
30             ),
31             Wikibase::Datatype::Snak->new(
32             'datatype' => 'wikibase-item',
33             'datavalue' => Wikibase::Datatype::Value::Item->new(
34             'value' => 'Q26972265',
35             ),
36             'property' => 'P642',
37             ),
38             ],
39             );
40              
41 2         54 my $self = $class->SUPER::new(@params);
42              
43 2         23 return $self;
44             }
45              
46             1;
47              
48             __END__