()
| 226 | } |
| 227 | |
| 228 | func (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 | |
| 235 | func (f *Framework) AllocPortExcludingRanges(ranges ...[2]int) int { |
| 236 | for range 1000 { |
no test coverage detected