(t *testing.T)
| 100 | } |
| 101 | |
| 102 | func TestConsumeRuntimeCallAPI_UnparsableJSONBody(t *testing.T) { |
| 103 | r := newTestConsumeRuntime(stubRoundTripper{respond: stubResponse(http.StatusOK, "application/json", "{not json")}) |
| 104 | _, err := r.CallAPI(context.Background(), "GET", "/open-apis/event/v1/connection", nil) |
| 105 | requireCallAPIProblem(t, err, errs.CategoryInternal, errs.SubtypeInvalidResponse) |
| 106 | } |
| 107 | |
| 108 | func TestConsumeRuntimeCallAPI_TransportFailure(t *testing.T) { |
| 109 | r := newTestConsumeRuntime(stubRoundTripper{respond: func(*http.Request) (*http.Response, error) { |
nothing calls this directly
no test coverage detected