Versions in this module Expand all Collapse all v2 v2.13.1 Oct 8, 2023 Changes in this version + const NilCloser + func Assert(tb TB, condition bool, format string, a ...interface{}) + func DirHash(t *testing.T, path string) []byte + func DirSize(t *testing.T, path string) int64 + func Equals(tb TB, exp, act interface{}, msgAndArgs ...interface{}) + func ErrorEqual(left, right error) bool + func NewLogger(t *testing.T) log.Logger + func NewRoundTripCheckRequest(checkRequest func(*http.Request), theResponse *http.Response, theError error) http.RoundTripper + func NotOk(tb TB, err error, a ...interface{}) + func Ok(tb TB, err error) + type Closer interface + Close func() + func NewCallbackCloser(fn func()) Closer + type MockContext struct + DoneCh chan struct{} + Error error + func (c *MockContext) Deadline() (deadline time.Time, ok bool) + func (c *MockContext) Done() <-chan struct{} + func (c *MockContext) Err() error + func (c *MockContext) Value(key interface{}) interface{} + type T interface + Fatal func(args ...interface{}) + Fatalf func(format string, args ...interface{}) + type TB interface + Fatalf func(string, ...interface{}) + Helper func() + type TemporaryDirectory interface + Path func() string + func NewTemporaryDirectory(name string, t T) (handler TemporaryDirectory) Other modules containing this package github.com/zpascal/prometheus