MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestHTTPParseURL

Function TestHTTPParseURL

internal/nodes/http_request_utils_test.go:148–163  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

146}
147
148func 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
165func BenchmarkHTTPRequest_httpRequestNextId(b *testing.B) {
166 runtime.GOMAXPROCS(1)

Callers

nothing calls this directly

Calls 2

httpParseHostFunction · 0.85
LogMethod · 0.80

Tested by

no test coverage detected