Branch Coverage

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


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