Branch Coverage

lib/JMAP/Validation/Tests/SetError.pm
Criterion Covered Total %
branch 12 20 60.0


line true false branch
12 0 768 unless JMAP::Validation::Tests::Object::is_object($value)
13 0 768 unless JMAP::Validation::Tests::String::is_string($value->{'type'})
15 384 384 unless defined $value->{'description'}
22 0 384 unless is_SetError($value)
23 128 256 unless $value->{'type'} eq 'invalidProperties'
29 256 0 if (defined $value->{'properties'})
30 0 256 unless JMAP::Validation::Tests::Array::is_array($value->{'properties'})
33 0 0 unless $valid_properties{$property}
43 0 384 unless is_SetError($value)
44 128 256 unless $value->{'type'} eq 'notFound'