We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67693bb + 08ac56d commit c43e62eCopy full SHA for c43e62e
internal/manifest/common_test.go
@@ -53,7 +53,7 @@ func TestValidateUnambiguousManifestFormat(t *testing.T) {
53
54
// Every single field is allowed by its bit, and rejected by any other bit
55
for bit, fieldName := range fields {
56
- json := []byte(fmt.Sprintf(`{"%s":[]}`, fieldName))
+ json := fmt.Appendf(nil, `{"%s":[]}`, fieldName)
57
err := ValidateUnambiguousManifestFormat(json, mt, bit)
58
assert.NoError(t, err, fieldName)
59
err = ValidateUnambiguousManifestFormat(json, mt, allAllowedFields^bit)
0 commit comments