Branch Coverage

blib/lib/Wikibase/Datatype/Struct/Value.pm
Criterion Covered Total %
branch 38 40 95.0


line true false branch
26 1 52 unless (defined $obj)
29 1 51 unless ($obj->isa("Wikibase::Datatype::Value"))
35 1 50 if ($type eq 'globecoordinate') { }
19 31 elsif ($type eq 'item') { }
1 30 elsif ($type eq 'monolingualtext') { }
1 29 elsif ($type eq 'property') { }
1 28 elsif ($type eq 'quantity') { }
1 27 elsif ($type eq 'sense') { }
21 6 elsif ($type eq 'string') { }
5 1 elsif ($type eq 'time') { }
61 0 44 unless (exists $struct_hr->{'type'})
66 1 43 if ($struct_hr->{'type'} eq 'globecoordinate') { }
1 42 elsif ($struct_hr->{'type'} eq 'monolingualtext') { }
1 41 elsif ($struct_hr->{'type'} eq 'quantity') { }
19 22 elsif ($struct_hr->{'type'} eq 'string') { }
5 17 elsif ($struct_hr->{'type'} eq 'time') { }
16 1 elsif ($struct_hr->{'type'} eq 'wikibase-entityid') { }
77 14 2 if ($struct_hr->{'value'}{'entity-type'} eq 'item') { }
1 1 elsif ($struct_hr->{'value'}{'entity-type'} eq 'property') { }
1 0 elsif ($struct_hr->{'value'}{'entity-type'} eq 'sense') { }