MCPcopy Create free account
hub / github.com/cronitorio/cronitor-cli / newTestClient

Function newTestClient

lib/api_client_test.go:17–25  ·  view source on GitHub ↗

--- API Client Unit Tests ---

(serverURL string)

Source from the content-addressed store, hash-verified

15// --- API Client Unit Tests ---
16
17func newTestClient(serverURL string) *lib.APIClient {
18 return &lib.APIClient{
19 BaseURL: serverURL,
20 ApiKey: "test-api-key-1234567890",
21 UserAgent: "CronitorCLI/test",
22 IsDev: false,
23 Logger: nil,
24 }
25}
26
27func TestAPIClient_GET(t *testing.T) {
28 mock := testutil.NewMockAPI()

Calls

no outgoing calls

Tested by

no test coverage detected