move helper function to backend_test so as not to be ENT or CE specific (#14619) (#14635)

Co-authored-by: Scott Miller <smiller@hashicorp.com>
This commit is contained in:
Vault Automation 2026-05-07 15:41:18 -06:00 committed by GitHub
parent 2f5b0b4f3a
commit 23eec51fc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8321,3 +8321,7 @@ func TestBackend_IDNWithWildcards_AltNames(t *testing.T) {
})
}
}
func stringSliceContainsAny(sl []string, substr string) bool {
return slices.ContainsFunc(sl, func(s string) bool { return strings.Contains(s, substr) })
}