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

Function testRandomExtension

pkg/input/dir/source_test.go:384–387  ·  view source on GitHub ↗

testRandomExtension selects and returns one of the "ObjectExtensions" at random

()

Source from the content-addressed store, hash-verified

382
383// testRandomExtension selects and returns one of the "ObjectExtensions" at random
384func testRandomExtension() string {
385 num := rand.Intn(len(ObjectExtensions))
386 return ObjectExtensions[num]
387}
388
389func testClearTypeInfo(obj deploy.KubeObject) {
390 obj.GetObjectKind().SetGroupVersionKind(nil)

Callers 2

TestInputPodFunction · 0.85
TestInputRCAndPodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected