Documentation
¶
Index ¶
- func ContextWithT(ctx context.Context, t testing.TB) context.Context
- func Filter[ElementType any](ss []ElementType, test func(ElementType) bool) (ret []ElementType)
- func Log(ctx context.Context, args ...any)
- func LogDuration(ctx context.Context, duration time.Duration, warningDuration time.Duration, ...)
- func Logf(ctx context.Context, format string, args ...any)
- func Map[OriginalElementType, TransformedElementType any](ts []OriginalElementType, f func(OriginalElementType) TransformedElementType) []TransformedElementType
- func Reduce[ElementType, ReturnType any](s []ElementType, initialValue ReturnType, ...) ReturnType
- func StrToInt32(s string) int32
- func WithTestLogger(t testing.TB) testing.TB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogDuration ¶
func Map ¶
func Map[OriginalElementType, TransformedElementType any](ts []OriginalElementType, f func(OriginalElementType) TransformedElementType) []TransformedElementType
func Reduce ¶
func Reduce[ElementType, ReturnType any](s []ElementType, initialValue ReturnType, f func(sum ReturnType, next ElementType) ReturnType) ReturnType
func StrToInt32 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.