testutils

package
v0.0.0-...-ed4ef5d Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 16 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

This section is empty.

Functions

This section is empty.

Types

type GCStorageReaderMock

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

func (*GCStorageReaderMock) Close

func (r *GCStorageReaderMock) Close() error

func (*GCStorageReaderMock) Read

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

type HTTPClientMock

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

func (*HTTPClientMock) Do

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

type Mockobject

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

Mockobject is a mock of object interface.

func NewMockobject

func NewMockobject(ctrl *gomock.Controller) *Mockobject

NewMockobject creates a new mock instance.

func (*Mockobject) Attrs

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

Attrs mocks base method.

func (*Mockobject) EXPECT

func (m *Mockobject) EXPECT() *MockobjectMockRecorder

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

func (*Mockobject) NewReader

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

NewReader mocks base method.

type MockobjectMockRecorder

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

MockobjectMockRecorder is the mock recorder for Mockobject.

func (*MockobjectMockRecorder) Attrs

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

Attrs indicates an expected call of Attrs.

func (*MockobjectMockRecorder) NewReader

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

NewReader indicates an expected call of NewReader.

type S3ManagerMock

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

func (*S3ManagerMock) Download

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

func (*S3ManagerMock) DownloadWithContext

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

func (*S3ManagerMock) GetFile

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

func (*S3ManagerMock) Upload

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

func (*S3ManagerMock) UploadWithContext

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

type S3ManagerV2Mock

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

func (*S3ManagerV2Mock) Download

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

func (*S3ManagerV2Mock) Upload

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