testutils

package
v0.18.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

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 HTTPClientMock added in v0.13.0

type HTTPClientMock struct {
	ForceError bool
	StatusCode int
	Body       string
	Signature  string
}

func (*HTTPClientMock) Do added in v0.13.0

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

type MockExporter

type MockExporter struct {
	ExportedEvents    []exporter.FeatureEvent
	Err               error
	ExpectedNumberErr int
	CurrentNumberErr  int
	Bulk              bool
	// contains filtered or unexported fields
}

func (*MockExporter) Export

func (m *MockExporter) Export(ctx context.Context, logger *log.Logger, events []exporter.FeatureEvent) error

func (*MockExporter) GetExportedEvents

func (m *MockExporter) GetExportedEvents() []exporter.FeatureEvent

func (*MockExporter) IsBulk added in v0.11.0

func (m *MockExporter) IsBulk() bool

type S3ManagerMock added in v0.12.0

type S3ManagerMock struct {
	S3ManagerMockFileSystem map[string]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(context aws.Context, at io.WriterAt,
	input *s3.GetObjectInput, f ...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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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