Documentation ¶
Overview ¶
Package testutils is a generated GoMock package.
Index ¶
- Constants
- Variables
- 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 ¶
View Source
var FlagKeyNotStringResult = MissingFlagKeyResult
View Source
var MissingFlagKeyResult = `` /* 216-byte string literal not displayed */
View Source
var MongoFindResultFlagNoStr = `` /* 440-byte string literal not displayed */
View Source
var MongoFindResultString = `` /* 445-byte string literal not displayed */
View Source
var MongoMissingFlagKey = `` /* 425-byte string literal not displayed */
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
type HTTPClientMock ¶ added in v0.13.0
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.
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
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
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.