Documentation ¶
Index ¶
- func ByteCountDecimal(b int64) string
- func GenerateRandomBytes(n int) []byte
- func MakeToken(n int) string
- func MustParseAddr(str string) ma.Multiaddr
- func NewClonedContext(ctx context.Context) context.Context
- func NewResolvedPath(s string) (path.Resolved, error)
- func ParsePath(p path.Path) (resolved path.Resolved, fpath string, err error)
- func RunFlaky(t *testing.T, f func(ft *FlakyT))
- func ToValidName(str string) (name string, ok bool)
- type FlakyT
- type TestingTWithCleanup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountDecimal ¶ added in v2.4.0
func GenerateRandomBytes ¶
func MustParseAddr ¶
func NewClonedContext ¶
NewClonedContext returns a context with the same Values but not inherited cancelation.
func ToValidName ¶
Types ¶
type FlakyT ¶
type FlakyT struct {
// contains filtered or unexported fields
}
FlakyT provides retry mechanisms to test.
func (*FlakyT) Cleanup ¶
func (ft *FlakyT) Cleanup(cls func())
Cleanup registers a cleanup function.
type TestingTWithCleanup ¶
TestingTWithCleanup is an augmented require.TestingT with a Cleanup function.
Click to show internal directories.
Click to hide internal directories.