(t *testing.T)
| 198 | } |
| 199 | |
| 200 | func TestRunSendTelemetryInvalidPayload(t *testing.T) { |
| 201 | err := runSendTelemetry(context.Background(), &SendTelemetryOptions{ |
| 202 | TelemetryEndpointURL: "http://localhost:0", |
| 203 | PayloadJSON: "not-json", |
| 204 | }) |
| 205 | require.Error(t, err) |
| 206 | } |
| 207 | |
| 208 | func TestRunSendTelemetryServerError(t *testing.T) { |
| 209 | mock := &mockTelemetryAPI{err: assert.AnError} |
nothing calls this directly
no test coverage detected