test_fixture

package
v0.0.0-...-d67a65b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntegrationTestFixture

type IntegrationTestFixture struct {
	*testing.T
	Log               logger.ILogger
	Cfg               *config.Config
	RabbitmqPublisher rabbitmq.IPublisher
	RabbitmqConsumer  *rabbitmq.Consumer[delivery.ProductDeliveryBase]
	ConnRabbitmq      *amqp.Connection
	HttpClient        *resty.Client
	JaegerTracer      trace.Tracer
	Gorm              *gorm.DB
	Echo              *echo.Echo
	GrpcClient        grpc.GrpcClient
	ProductRepository contracts.ProductRepository
	Ctx               context.Context
}

func NewIntegrationTestFixture

func NewIntegrationTestFixture(t *testing.T, option fx.Option) *IntegrationTestFixture

type UnitTestFixture

type UnitTestFixture struct {
	*testing.T
	Log               logger.ILogger
	Cfg               *config.Config
	Ctx               context.Context
	RabbitmqPublisher *mocks2.IPublisher
	ProductRepository *mocks.ProductRepository
	GrpcClient        *mocks3.GrpcClient
}

func NewUnitTestFixture

func NewUnitTestFixture(t *testing.T) *UnitTestFixture

Jump to

Keyboard shortcuts

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