Branch Coverage

blib/lib/Wikibase/Datatype/Struct/Utils.pm
Criterion Covered Total %
branch 18 20 90.0


line true false branch
18 10 1 unless (defined $snak_obj)
21 10 1 unless (defined $struct_snak_obj)
25 0 11 if ($Wikibase::Datatype::Struct::Utils::EVAL_ERROR)
29 1 10 unless (defined $base_uri)
38 1 18 unless ($snak_o->isa($snak_obj))
42 17 1 unless (exists $snaks_hr->{$key}{$snak_o->property})
45 17 1 if (not @{$$snaks_hr{$key . '-order'};} or &none(sub {
60 13 1 unless (defined $struct_snak_obj)
64 0 14 if ($Wikibase::Datatype::Struct::Utils::EVAL_ERROR)
73 2 18 if ($Wikibase::Datatype::Struct::Utils::EVAL_ERROR)