testutils

package
v1.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package testutils is a generated GoMock package.

Index

Constants

View Source
const RFC3339Regex = "" // nolint:lll

/* 161-byte string literal not displayed */

Variables

View Source
var FlagKeyNotStringResult = MissingFlagKeyResult
View Source
var MissingFlagKeyResult = `` /* 216-byte string literal not displayed */
View Source
var MockFlagNotStrResult = succesQueryMockerFactory(mongoFindResultFlagNoStr)
View Source
var MockNoFlagKeyResult = succesQueryMockerFactory(mongoMissingFlagKey)
View Source
var MockNoFlags = func(t *mtest.T) {

	t.AddMockResponses(mtest.CreateCommandErrorResponse(mtest.CommandError{}))
}
View Source
var MockSuccessFind = succesQueryMockerFactory(mongoFindResultString)
View Source
var QueryResult = `` /* 431-byte string literal not displayed */

Functions

This section is empty.

Types

type GCStorageReaderMock added in v0.19.0

type GCStorageReaderMock struct {
	ShouldFail bool
	FileToRead string
	// contains filtered or unexported fields
}

func (*GCStorageReaderMock) Close added in v0.19.0

func (r *GCStorageReaderMock) Close() error

func (*GCStorageReaderMock) Read added in v0.19.0

func (r *GCStorageReaderMock) Read(p []byte) (n int, err error)

type HTTPClientMock added in v0.13.0

type HTTPClientMock struct {
	ForceError bool
	StatusCode int
	Body       string
	Signature  string
	Headers    map[string][]string
}

func (*HTTPClientMock) Do added in v0.13.0

func (h *HTTPClientMock) Do(req *http.Request) (*http.Response, error)

type Mockobject added in v0.19.0

type Mockobject struct {
	// contains filtered or unexported fields
}

Mockobject is a mock of object interface.

func NewMockobject added in v0.19.0

func NewMockobject(ctrl *gomock.Controller) *Mockobject

NewMockobject creates a new mock instance.

func (*Mockobject) Attrs added in v0.19.0

func (m *Mockobject) Attrs(ctx context.Context) (*storage.ObjectAttrs, error)

Attrs mocks base method.

func (*Mockobject) EXPECT added in v0.19.0

func (m *Mockobject) EXPECT() *MockobjectMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Mockobject) NewReader added in v0.19.0

func (m *Mockobject) NewReader(ctx context.Context) (*storage.Reader, error)

NewReader mocks base method.

type MockobjectMockRecorder added in v0.19.0

type MockobjectMockRecorder struct {
	// contains filtered or unexported fields
}

MockobjectMockRecorder is the mock recorder for Mockobject.

func (*MockobjectMockRecorder) Attrs added in v0.19.0

func (mr *MockobjectMockRecorder) Attrs(ctx interface{}) *gomock.Call

Attrs indicates an expected call of Attrs.

func (*MockobjectMockRecorder) NewReader added in v0.19.0

func (mr *MockobjectMockRecorder) NewReader(ctx interface{}) *gomock.Call

NewReader indicates an expected call of NewReader.

type S3ManagerMock added in v0.12.0

type S3ManagerMock struct {
	S3ManagerMockFileSystem map[string]string
	TestDataLocation        string
}

func (*S3ManagerMock) Download added in v0.12.0

func (s *S3ManagerMock) Download(at io.WriterAt, input *s3.GetObjectInput,
	f ...func(*s3manager.Downloader),
) (int64, error)

func (*S3ManagerMock) DownloadWithContext added in v0.12.0

func (s *S3ManagerMock) DownloadWithContext(_ aws.Context, at io.WriterAt,
	input *s3.GetObjectInput, _ ...func(*s3manager.Downloader),
) (int64, error)

func (*S3ManagerMock) GetFile added in v0.12.0

func (s *S3ManagerMock) GetFile(key string) (string, error)

func (*S3ManagerMock) Upload added in v0.12.0

func (s *S3ManagerMock) Upload(uploadInput *s3manager.UploadInput,
	funC ...func(*s3manager.Uploader),
) (*s3manager.UploadOutput, error)

func (*S3ManagerMock) UploadWithContext added in v0.12.0

func (s *S3ManagerMock) UploadWithContext(context aws.Context, uploadInput *s3manager.UploadInput,
	funC ...func(*s3manager.Uploader),
) (*s3manager.UploadOutput, error)

type S3ManagerV2Mock added in v1.15.0

type S3ManagerV2Mock struct {
	S3ManagerMockFileSystem map[string]string
	TestDataLocation        string
}

func (*S3ManagerV2Mock) Download added in v1.15.0

func (s *S3ManagerV2Mock) Download(ctx context.Context, w io.WriterAt, input *s3.GetObjectInput, options ...func(*manager.Downloader)) (n int64, err error)

func (*S3ManagerV2Mock) Upload added in v1.15.0

func (s *S3ManagerV2Mock) Upload(ctx context.Context, uploadInput *s3.PutObjectInput, opts ...func(uploader *manager.Uploader)) (*manager.UploadOutput, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL