Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertJSONSubset ¶
AssertJSONSubset verifies that every expected field/value exists in actual. Extra fields in actual are allowed so compatibility tests can survive additive schema changes.
func MustLoadFixtureMap ¶
func MustLoadFixtureMap(tb testing.TB, baseFile string, relativePath ...string) map[string]interface{}
MustLoadFixtureMap loads a JSON fixture relative to baseFile and unmarshals it into a map.
func NormalizeGenerateSuccessPayload ¶
func NormalizeGenerateSuccessPayload(payload map[string]interface{})
NormalizeGenerateSuccessPayload replaces dynamic absolute paths so fixtures can stay stable.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.