MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / TestHTTPClient_SetAuthManager

Function TestHTTPClient_SetAuthManager

pkg/api/http_test.go:33–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

31}
32
33func TestHTTPClient_SetAuthManager(t *testing.T) {
34 client := NewHTTPClient(&http.Client{}, "https://test.example.com", testutils.NewTestLogger())
35 authManager := &AuthManager{}
36
37 client.SetAuthManager(authManager)
38
39 assert.Equal(t, authManager, client.authManager)
40}
41
42func TestHTTPClient_SetAPIToken(t *testing.T) {
43 client := NewHTTPClient(&http.Client{}, "https://test.example.com", testutils.NewTestLogger())

Callers

nothing calls this directly

Calls 3

SetAuthManagerMethod · 0.95
NewTestLoggerFunction · 0.92
NewHTTPClientFunction · 0.85

Tested by

no test coverage detected