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
Click to show internal directories.
Click to hide internal directories.