MCPcopy
hub / github.com/QuantumNous/new-api / decodeFlowQuotaResponse

Function decodeFlowQuotaResponse

controller/usedata_flow_test.go:55–62  ·  view source on GitHub ↗
(t *testing.T, recorder *httptest.ResponseRecorder)

Source from the content-addressed store, hash-verified

53}
54
55func decodeFlowQuotaResponse(t *testing.T, recorder *httptest.ResponseRecorder) flowQuotaResponse {
56 t.Helper()
57 require.Equal(t, http.StatusOK, recorder.Code)
58 var payload flowQuotaResponse
59 require.NoError(t, common.Unmarshal(recorder.Body.Bytes(), &payload))
60 require.True(t, payload.Success, payload.Message)
61 return payload
62}
63
64func TestGetAllFlowQuotaDatesUsesAdminDimensions(t *testing.T) {
65 setupFlowControllerTestDB(t)

Calls 3

UnmarshalFunction · 0.92
EqualMethod · 0.80
BytesMethod · 0.65

Tested by

no test coverage detected