(t *testing.T)
| 146 | } |
| 147 | |
| 148 | func TestHTTPParseURL(t *testing.T) { |
| 149 | for _, s := range []string{ |
| 150 | "", |
| 151 | "null", |
| 152 | "example.com", |
| 153 | "https://example.com", |
| 154 | "https://example.com/hello", |
| 155 | } { |
| 156 | host, err := httpParseHost(s) |
| 157 | if err == nil { |
| 158 | t.Log(s, "=>", host) |
| 159 | } else { |
| 160 | t.Log(s, "=>") |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | func BenchmarkHTTPRequest_httpRequestNextId(b *testing.B) { |
| 166 | runtime.GOMAXPROCS(1) |
nothing calls this directly
no test coverage detected