Documentation
¶
Index ¶
- func AssertJSONExamplesForObject(t *testing.T, jsonString, fieldName string, expectedExamples map[string]any)
- func AssertJSONExamplesForObjectsInAnArray(t *testing.T, jsonString, fieldName string, expectedExamples map[string]any)
- func AssertJSONHasArrayWithObject(t *testing.T, jsonString string, fieldName string, requiredKeys []string)
- func AssertJSONHasObject(t *testing.T, jsonString string, fieldName string, requiredKeys []string)
- func AssertJSONHasXAmountOfArrays(t *testing.T, jsonString string, expectedArrayAmount int)
- func AssertJSONHasXAmountOfObjects(t *testing.T, jsonString string, expectedObjAmount int)
- func ExtractBody(jsonWithHeaders string) (string, error)
- func ExtractHeaders(t *testing.T, result string) (map[string]string, error)
- func SetupGenRequestTest(t *testing.T, testFileName string, testFileContentPath string, args ...string) (*cobra.Command, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertJSONHasObject ¶
func ExtractBody ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.