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

Function TestNewClient

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

Source from the content-addressed store, hash-verified

18func ptr(s string) *string { return &s }
19
20func TestNewClient(t *testing.T) {
21 token := "test_token_12345"
22 baseURL := "https://api.thundercompute.com:8443"
23 client := NewClient(token, baseURL)
24
25 assert.NotNil(t, client)
26 assert.Equal(t, baseURL, client.baseURL)
27 assert.Equal(t, token, client.token)
28}
29
30func TestCreateInstanceRequest(t *testing.T) {
31 req := CreateInstanceRequest{

Callers

nothing calls this directly

Calls 1

NewClientFunction · 0.85

Tested by

no test coverage detected