MCPcopy
hub / github.com/redspread/spread / createSecret

Function createSecret

pkg/entity/entity_test.go:197–204  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

195}
196
197func createSecret(name string) *kube.Secret {
198 return &kube.Secret{
199 ObjectMeta: kube.ObjectMeta{Name: name},
200
201 Type: kube.SecretTypeOpaque,
202 Data: map[string][]byte{randomString(10): []byte(randomString(80))},
203 }
204}
205
206// testRandomObjects returns a slice of randomly generated objects. If it is called with an object
207// count of 0, a random number of slices (with an upper bound of 100) will be generated.

Callers 9

TestImageKubeFunction · 0.70
TestContainerBadObjectFunction · 0.70
TestBaseNilObjectsFunction · 0.70
TestBaseNoDefaultsFunction · 0.70
testRandomObjectsFunction · 0.70

Calls 1

randomStringFunction · 0.70

Tested by

no test coverage detected