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

Method Has

internal/postgres/parameters.go:148–151  ·  view source on GitHub ↗

Has returns whether or not parameter name is present in ps.

(name string)

Source from the content-addressed store, hash-verified

146
147// Has returns whether or not parameter name is present in ps.
148func (ps *ParameterSet) Has(name string) bool {
149 _, ok := ps.Get(name)
150 return ok
151}
152
153func (*ParameterSet) normalize(name string) string {
154 // All parameter names are case-insensitive.

Callers 3

TestParameterSetFunction · 0.95
TestSetHugePagesFunction · 0.95

Calls 1

GetMethod · 0.95

Tested by 3

TestParameterSetFunction · 0.76
TestSetHugePagesFunction · 0.76