--- API Client Unit Tests ---
(serverURL string)
| 15 | // --- API Client Unit Tests --- |
| 16 | |
| 17 | func 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 | |
| 27 | func TestAPIClient_GET(t *testing.T) { |
| 28 | mock := testutil.NewMockAPI() |
no outgoing calls
no test coverage detected