testlib

package
v0.70.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeLogger

func MakeLogger(tb testing.TB) log.FieldLogger

MakeLogger creates a log.FieldLogger that routes to tb.Log.

func NewLoggerEntry added in v0.17.0

func NewLoggerEntry() *logrus.Entry

NewLoggerEntry returns a new logger entry instance.

Types

type AWSMockedAPI added in v0.17.0

type AWSMockedAPI struct {
	ACM                   *mocks.MockACMAPI
	RDS                   *mocks.MockRDSAPI
	IAM                   *mocks.MockIAMAPI
	EC2                   *mocks.MockEC2API
	KMS                   *mocks.MockKMSAPI
	S3                    *mocks.MockS3API
	Route53               *mocks.MockRoute53API
	ResourceGroupsTagging *mocks.MockResourceGroupsTaggingAPIAPI
	SecretsManager        *mocks.MockSecretsManagerAPI
	STS                   *mocks.MockSTSAPI
	DynamoDB              *mocks.MockDynamoDBAPI
}

AWSMockedAPI has all AWS mocked services. New services should be added here.

func NewAWSMockedAPI added in v0.17.0

func NewAWSMockedAPI(ctrl *gomock.Controller) *AWSMockedAPI

NewAWSMockedAPI returns an instance of AWSMockedAPI.

type MockedFieldLogger added in v0.17.0

type MockedFieldLogger struct {
	Logger *mocks.MockFieldLogger
}

MockedFieldLogger supplies a mocked library for testing logs.

func NewMockedFieldLogger added in v0.17.0

func NewMockedFieldLogger(ctrl *gomock.Controller) *MockedFieldLogger

NewMockedFieldLogger returns a instance of FieldLogger for testing.

type ModelMockedAPI added in v0.17.0

type ModelMockedAPI struct {
	DatabaseInstallationStore *mocks.MockInstallationDatabaseStoreInterface
}

ModelMockedAPI has all mocked interfaces defined in model.

func NewModelMockedAPI added in v0.17.0

func NewModelMockedAPI(ctrl *gomock.Controller) *ModelMockedAPI

NewModelMockedAPI returns an instance of ModelMockedAPI.

Jump to

Keyboard shortcuts

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