MCPcopy Create free account
hub / github.com/devfile/api / GetRandomGroupKind

Function GetRandomGroupKind

test/v200/utils/common/test_utils.go:256–258  ·  view source on GitHub ↗

GetRandomGroupKind return random group kind. One of "build", "run", "test" or "debug"

()

Source from the content-addressed store, hash-verified

254
255// GetRandomGroupKind return random group kind. One of "build", "run", "test" or "debug"
256func GetRandomGroupKind() schema.CommandGroupKind {
257 return GroupKinds[GetRandomNumber(0, len(GroupKinds))-1]
258}
259
260// GetRandomValue returns a value selected at random from an array or slice of typed constants such as the ones declared
261// in api/test/v200/utils/common/test_utils.go e.g GroupKinds, ComponentType, ProjectTypes, etc

Callers

nothing calls this directly

Calls 1

GetRandomNumberFunction · 0.85

Tested by

no test coverage detected