Documentation ¶
Index ¶
- 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
- type GetGRPCResultFunc
- type TestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAPITestCaseResult ¶
func CheckAPITestCaseResult(tt TestCase, res *httptest.ResponseRecorder, t *testing.T)
CheckAPITestCaseResult - Check API TestCase's result
func CheckAPITestCases ¶
func CheckAPITestCases( tests []TestCase, getRequest GetAPIRequestFunc, t *testing.T, handler http.Handler, )
CheckAPITestCases - Check API test Cases
func CheckGRPCTestCaseResult ¶
CheckGRPCTestCaseResult - check single GRPC test result
func CheckGRPCTestCases ¶
func CheckGRPCTestCases( testCases []TestCase, getGrpcResult GetGRPCResultFunc, t *testing.T, )
CheckGRPCTestCases - check multiple GRPC test cases
func DeepEqualJSON ¶
DeepEqualJSON - check if two json string are equal, with ignoredKeys
func JSONMustMarshal ¶
func JSONMustMarshal(val interface{}) string
JSONMustMarshal - direct json.Marshal with ignore errors
Types ¶
type GetGRPCResultFunc ¶
GetGRPCResultFunc -
Click to show internal directories.
Click to hide internal directories.