MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / TestNewClientWithCustomURL

Function TestNewClientWithCustomURL

api/client_test.go:197–205  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

195}
196
197func TestNewClientWithCustomURL(t *testing.T) {
198 token := "test_token_12345"
199 customURL := "https://staging-api.thundercompute.com:8443"
200 client := NewClient(token, customURL)
201
202 assert.NotNil(t, client)
203 assert.Equal(t, customURL, client.baseURL)
204 assert.Equal(t, token, client.token)
205}
206
207func TestClientSendsAuditContextHeaders(t *testing.T) {
208 server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls 1

NewClientFunction · 0.85

Tested by

no test coverage detected