Draft: Add spec coverage for nil checks in Metadatum validations
What does this MR do and why?
The Packages::XXX::Metadatum
methods for validating the package_type
have nil checks that aren't covered by specs.
A new validation for Packages::Composer::Metadatum
was added in !110777 (merged) and the same spec code pattern for the validation method was extracted into this MR. This adds the spec coverage for the nil checks in those classes.
How to set up and validate locally
Only specs were updated for this MR. There are no code or behavior changes.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #216910 (closed)