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

Function TestNewHTTPClient

internal/utils/http_test.go:9–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestNewHTTPClient(t *testing.T) {
10 a := assert.NewAssertion(t)
11
12 client := NewHTTPClient(1 * time.Second)
13 a.IsTrue(client.Timeout == 1*time.Second)
14
15 client2 := NewHTTPClient(1 * time.Second)
16 a.IsTrue(client != client2)
17}
18
19func TestSharedHTTPClient(t *testing.T) {
20 a := assert.NewAssertion(t)

Callers

nothing calls this directly

Calls 1

NewHTTPClientFunction · 0.70

Tested by

no test coverage detected