MCPcopy
hub / github.com/fatedier/frp / AllocPort

Method AllocPort

test/e2e/framework/framework.go:228–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226}
227
228func (f *Framework) AllocPort() int {
229 port := f.portAllocator.Get()
230 ExpectTrue(port > 0, "alloc port failed")
231 f.allocatedPorts = append(f.allocatedPorts, port)
232 return port
233}
234
235func (f *Framework) AllocPortExcludingRanges(ranges ...[2]int) int {
236 for range 1000 {

Callers 15

examples.goFile · 0.80
server.goFile · 0.80
client.goFile · 0.80
heartbeat.goFile · 0.80
chaos.goFile · 0.80
monitor.goFile · 0.80
group.goFile · 0.80
real_ip.goFile · 0.80
bandwidth_limit.goFile · 0.80
server.goFile · 0.80
http.goFile · 0.80
basic.goFile · 0.80

Calls 2

ExpectTrueFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected