(t *testing.T)
| 195 | } |
| 196 | |
| 197 | func 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 | |
| 207 | func TestClientSendsAuditContextHeaders(t *testing.T) { |
| 208 | server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
nothing calls this directly
no test coverage detected