MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / Regexp

Function Regexp

internal/testing/cmp/cmp.go:107–109  ·  view source on GitHub ↗

Regexp succeeds if value contains any match of the regular expression. The regular expression may be a *regexp.Regexp or a string that is a valid regexp pattern.

(regex RE, value string)

Source from the content-addressed store, hash-verified

105// The regular expression may be a *regexp.Regexp or a string that is a valid
106// regexp pattern.
107func Regexp[RE *regexp.Regexp | ~string](regex RE, value string) Comparison {
108 return gotest.Regexp(regex, value)
109}
110
111var leadingTabs = regexp.MustCompile(`^\t+`)
112

Calls

no outgoing calls

Tested by 8

TestLogRotationFunction · 0.74
TestBashPermissionsFunction · 0.74
TestClientCommonNameFunction · 0.74