Documentation
¶
Index ¶
- Variables
- func JsonMatches(expectedJson map[string]interface{}) func(t *testing.T, response []byte)
- func MockAssert(assertConfig *mocklib.AssertConfig, serverOutput *bytes.Buffer) []mocklib.ValidationError
- func Request(config *mocklib.MockConfig, method, route, payload string, ...) []byte
- func RequestApiReset(config *mocklib.MockConfig)
- func RunMock(state *E2eState, command string) ([]byte, error)
- func RunTest(t *testing.T, configurationFilePath, method, route string, ...)
- func StringMatches(expected string) func(t *testing.T, response []byte)
- type E2eState
- type KillMockFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ContentTypeJsonHeaders map[string]string = map[string]string{
"Content-type": "application/json",
}
Functions ¶
func JsonMatches ¶ added in v0.1.0
func MockAssert ¶
func MockAssert(assertConfig *mocklib.AssertConfig, serverOutput *bytes.Buffer) []mocklib.ValidationError
func RequestApiReset ¶ added in v0.1.1
func RequestApiReset(config *mocklib.MockConfig)
Types ¶
type KillMockFunc ¶
type KillMockFunc func()
Click to show internal directories.
Click to hide internal directories.