Documentation ¶
Index ¶
- func AcceptanceTests(t *testing.T, reason string)
- func AssertMatchFixtureJSON[V any](t *testing.T, path string, val V)
- func AssertMatchFixtureText(t *testing.T, path string, actual string)
- func CreateJSONFixture[V any](t *testing.T, path string, val V)
- func CreateTextFixture(t *testing.T, path string, val string)
- func LoadJSONFixture[V any](t *testing.T, path string) V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptanceTests ¶ added in v1.4.3
AcceptanceTests marks this test function as a extended that require additional dependencies automatically skipped unless running in a CI environment
func AssertMatchFixtureJSON ¶
AssertMatchFixtureJSON matches the JSON at path with the value val, failing if not equal, printing out the difference.
func AssertMatchFixtureText ¶ added in v1.4.1
AssertMatchFixtureText matches the Text file at path with actual
func CreateJSONFixture ¶
CreateJSONFixture creates a JSON file at path of the value val, can be used with AssertMatchFixtureJSON to compare against future values.
func CreateTextFixture ¶ added in v1.4.1
CreateTextFixture creates a text file at path of the value val, can be used with AssertMatchFixtureJSON to compare against future values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.