Documentation
¶
Index ¶
- func AnyNanEqual(t *testing.T, expected, actual any)
- func CheckErr(err error)
- func DeepEqual[T any](t *testing.T, expected, actual T)
- func Must[T any](t T, err error) T
- func NaNEqual[T BasicallyAFloat](t *testing.T, expected, actual T)
- func SetEmptyMemcachedClient(ctx context.Context) context.Context
- func SetLocalAWSClient(ctx context.Context) context.Context
- func SetLocalAWSClientWithRedirects(ctx context.Context, bucketRedirect map[string]string) context.Context
- func SliceNaNEqual[T BasicallyAFloat](t *testing.T, expected []T, actual []T)
- type BadReadCloser
- type BadReader
- type BasicallyAFloat
- type EmptyMemcachedClient
- type FakeHttpWriter
- type LocalS3Client
- func (tClient LocalS3Client) DeleteObject(ctx context.Context, input *s3.DeleteObjectInput, opts ...func(*s3.Options)) (*s3.DeleteObjectOutput, error)
- func (tClient LocalS3Client) GetObject(ctx context.Context, input *s3.GetObjectInput, options ...func(*s3.Options)) (*s3.GetObjectOutput, error)
- func (tClient LocalS3Client) HeadObject(ctx context.Context, input *s3.HeadObjectInput, opts ...func(*s3.Options)) (*s3.HeadObjectOutput, error)
- func (tClient LocalS3Client) ListObjectsV2(ctx context.Context, input *s3.ListObjectsV2Input, ...) (*s3.ListObjectsV2Output, error)
- func (LocalS3Client) PutObject(context.Context, *s3.PutObjectInput, ...func(*s3.Options)) (*s3.PutObjectOutput, error)
- type TestSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnyNanEqual ¶
func NaNEqual ¶
func NaNEqual[T BasicallyAFloat](t *testing.T, expected, actual T)
func SliceNaNEqual ¶
func SliceNaNEqual[T BasicallyAFloat](t *testing.T, expected []T, actual []T)
Types ¶
type BadReadCloser ¶
type BadReadCloser struct {
BadReader
}
BadReadCloser meets the criteria for an io.ReadCloser
func (BadReadCloser) Close ¶
func (rc BadReadCloser) Close() error
type BasicallyAFloat ¶
type BasicallyAFloat interface {
~float64
}
type EmptyMemcachedClient ¶
type EmptyMemcachedClient struct{}
type FakeHttpWriter ¶
FakeHttpWriter can be used in place of an http writer (only when the var line below is present)
func NewFakeHttpWriter ¶
func NewFakeHttpWriter() *FakeHttpWriter
func (*FakeHttpWriter) Header ¶
func (w *FakeHttpWriter) Header() http.Header
func (*FakeHttpWriter) WriteHeader ¶
func (w *FakeHttpWriter) WriteHeader(statusCode int)
type LocalS3Client ¶
func (LocalS3Client) DeleteObject ¶
func (tClient LocalS3Client) DeleteObject(ctx context.Context, input *s3.DeleteObjectInput, opts ...func(*s3.Options)) (*s3.DeleteObjectOutput, error)
func (LocalS3Client) GetObject ¶
func (tClient LocalS3Client) GetObject(ctx context.Context, input *s3.GetObjectInput, options ...func(*s3.Options)) (*s3.GetObjectOutput, error)
func (LocalS3Client) HeadObject ¶
func (tClient LocalS3Client) HeadObject(ctx context.Context, input *s3.HeadObjectInput, opts ...func(*s3.Options)) (*s3.HeadObjectOutput, error)
func (LocalS3Client) ListObjectsV2 ¶
func (tClient LocalS3Client) ListObjectsV2(ctx context.Context, input *s3.ListObjectsV2Input, options ...func(*s3.Options)) (*s3.ListObjectsV2Output, error)
func (LocalS3Client) PutObject ¶
func (LocalS3Client) PutObject(context.Context, *s3.PutObjectInput, ...func(*s3.Options)) (*s3.PutObjectOutput, error)
type TestSettings ¶
func RegisterTests ¶
func RegisterTests(containsTests bool, containsBenchmarks bool) TestSettings
Click to show internal directories.
Click to hide internal directories.