Documentation ¶
Index ¶
- func ReplaceAddr(s string) string
- func ReplaceDateHeader(s string) string
- func ReplaceOutput(s string) string
- func ReplaceUserAgent(s string) string
- func ResetDuration(s string) string
- func RunParameterizedTests(r Reporter, e ParameterizedTestExecutor, files ...string)
- func ToPtr[T any](t T) *T
- type ParameterizedTestExecutor
- type Reporter
- type TestParameter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceAddr ¶ added in v0.8.1
ReplaceAddr replaces addresses on result output.
func ReplaceDateHeader ¶ added in v0.8.1
ReplaceDateHeader replaces Date header on result output.
func ReplaceOutput ¶ added in v0.8.1
ReplaceOutput replaces result output.
func ReplaceUserAgent ¶ added in v0.8.1
ReplaceUserAgent replaces User-Agent header on result output.
func ResetDuration ¶
ResetDuration resets durations from result output.
func RunParameterizedTests ¶ added in v0.7.0
func RunParameterizedTests(r Reporter, e ParameterizedTestExecutor, files ...string)
RunParameterizedTests runs parameterized tests.
Types ¶
type ParameterizedTestExecutor ¶ added in v0.7.0
ParameterizedTestExecutor represents a executor for parameterized testing.
type Reporter ¶ added in v0.7.0
type Reporter interface { Fail() Failed() bool Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Helper() }
A Reporter is something that can be used to report test failures. It is satisfied by the standard library's *testing.T.
type TestParameter ¶ added in v0.7.0
type TestParameter struct { Name string `yaml:"name"` YAML interface{} `yaml:"yaml"` OKs []interface{} `yaml:"ok"` NGs []interface{} `yaml:"ng"` }
TestParameter is a parameters for parameterized testing.
Click to show internal directories.
Click to hide internal directories.