Versions in this module Expand all Collapse all v1 v1.5.0 Oct 24, 2022 Changes in this version + func CheckAPITestCaseResult(tt TestCase, res *httptest.ResponseRecorder, t *testing.T) + func CheckAPITestCases(tests []TestCase, getRequest GetAPIRequestFunc, t *testing.T, ...) + func CheckGRPCTestCaseResult(testCase TestCase, got interface{}, err error, t *testing.T) + func CheckGRPCTestCases(testCases []TestCase, getGrpcResult GetGRPCResultFunc, t *testing.T) + func DeepEqualJSON(xJSON, yJSON string, ignoredKeys []string) bool + func JSONMustMarshal(val interface{}) string + type GetAPIRequestFunc func(interface{}) *http.Request + type GetGRPCResultFunc func(TestCase, *testing.T) (interface{}, error) + type TestCase struct + App *gobay.Application + Ctx context.Context + IgnoredFieldKeys []string + Name string + Req interface{} + WantErr bool + WantJSON string + WantStatusCode int + func MakeTestCase(query *TestCase, wantRes interface{}) TestCase