(t *testing.T)
| 24 | } |
| 25 | |
| 26 | func TestFormatURL(t *testing.T) { |
| 27 | for i, tt := range formatURLTests { |
| 28 | url := formatURL(tt.tls, tt.addr, tt.port) |
| 29 | if url != tt.output { |
| 30 | t.Errorf("Test %d, expected \"%s\" got \"%s\"", i, tt.output, url) |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func TestPickPort(t *testing.T) { |
| 36 | _, err := pickPort("127.0.0.1", 8000, 10000, true) |
nothing calls this directly
no test coverage detected