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

Function getRandomProtocol

test/v200/utils/common/endpoint_test_utils.go:35–37  ·  view source on GitHub ↗

getRandomProtocol returns a random protocol value

()

Source from the content-addressed store, hash-verified

33
34// getRandomProtocol returns a random protocol value
35func getRandomProtocol() schema.EndpointProtocol {
36 return Protocols[GetRandomNumber(1, len(Protocols))-1]
37}
38
39// getUniquePort return a port value not previously used in that same devfile
40func (devfile *TestDevfile) getUniquePort() int {

Callers 2

CreateEndpointsMethod · 0.85
CreateParentEndpointsMethod · 0.85

Calls 1

GetRandomNumberFunction · 0.85

Tested by

no test coverage detected