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

Function getRandomExposure

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

getRandomExposure returns a random exposure value

()

Source from the content-addressed store, hash-verified

26
27// getRandomExposure returns a random exposure value
28func getRandomExposure() schema.EndpointExposure {
29 return Exposures[GetRandomNumber(1, len(Exposures))-1]
30}
31
32var Protocols = [...]schema.EndpointProtocol{schema.HTTPEndpointProtocol, schema.HTTPSEndpointProtocol, schema.WSEndpointProtocol, schema.WSSEndpointProtocol, schema.TCPEndpointProtocol, schema.UDPEndpointProtocol}
33

Callers 2

CreateEndpointsMethod · 0.85
CreateParentEndpointsMethod · 0.85

Calls 1

GetRandomNumberFunction · 0.85

Tested by

no test coverage detected