Documentation ¶
Overview ¶
Package testutils is a generated GoMock package.
Index ¶
- Constants
- type GCStorageReaderMock
- type HTTPClientMock
- type Mockobject
- type MockobjectMockRecorder
- type S3ManagerMock
- func (s *S3ManagerMock) Download(at io.WriterAt, input *s3.GetObjectInput, f ...func(*s3manager.Downloader)) (int64, error)
- func (s *S3ManagerMock) DownloadWithContext(_ aws.Context, at io.WriterAt, input *s3.GetObjectInput, ...) (int64, error)
- func (s *S3ManagerMock) GetFile(key string) (string, error)
- func (s *S3ManagerMock) Upload(uploadInput *s3manager.UploadInput, funC ...func(*s3manager.Uploader)) (*s3manager.UploadOutput, error)
- func (s *S3ManagerMock) UploadWithContext(context aws.Context, uploadInput *s3manager.UploadInput, ...) (*s3manager.UploadOutput, error)
- type S3ManagerV2Mock
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
type HTTPClientMock ¶
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.
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 ¶
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) 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 ¶
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.