Documentation ¶
Index ¶
- func CheckTwirpErrorCode(t *testing.T, err error, code twirp.ErrorCode)
- func DisableXRay()
- func ExpectTwirpInvalidArgument(t *testing.T, err error, argument string)
- func Must(t *testing.T, err error, msg string)
- func Mustf(t *testing.T, err error, format string, a ...interface{})
- func NewTestLogWriter(t *testing.T) io.Writer
- func TestContext(t *testing.T) context.Context
- type TestEnv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableXRay ¶
func DisableXRay()
Types ¶
type TestEnv ¶
type TestEnv struct {
// contains filtered or unexported fields
}
TestEnv is a utility for setting and resetting environment variables for tests. An empty test env is ready for use and will acquire a lock on environment changes at the first environment change, and releases it when Cleanup() is called.
func (*TestEnv) Cleanup ¶
func (te *TestEnv) Cleanup()
Cleanup restores the environment to its original state and releases the environment lock. Safe to call multiple times.
Click to show internal directories.
Click to hide internal directories.