mocks

package
v0.0.0-...-3cd2d05 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JourneyParser

type JourneyParser struct {
	mock.Mock
}

JourneyParser is an autogenerated mock type for the JourneyParser type

func NewJourneyParser

func NewJourneyParser(t mockConstructorTestingTNewJourneyParser) *JourneyParser

NewJourneyParser creates a new instance of JourneyParser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*JourneyParser) Parse

func (_m *JourneyParser) Parse(reader io.Reader, journeyChan chan<- *domain.Journey, errorChan chan<- string)

Parse provides a mock function with given fields: reader, journeyChan, errorChan

type JourneyRepositoryInterface

type JourneyRepositoryInterface struct {
	mock.Mock
}

JourneyRepositoryInterface is an autogenerated mock type for the JourneyRepositoryInterface type

func NewJourneyRepositoryInterface

func NewJourneyRepositoryInterface(t mockConstructorTestingTNewJourneyRepositoryInterface) *JourneyRepositoryInterface

NewJourneyRepositoryInterface creates a new instance of JourneyRepositoryInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*JourneyRepositoryInterface) Add

func (_m *JourneyRepositoryInterface) Add(c *gin.Context, journeys []domain.Journey) (int, error)

Add provides a mock function with given fields: c, journeys

type JourneyUsecase

type JourneyUsecase struct {
	mock.Mock
}

JourneyUsecase is an autogenerated mock type for the JourneyUsecase type

func NewJourneyUsecase

func NewJourneyUsecase(t mockConstructorTestingTNewJourneyUsecase) *JourneyUsecase

NewJourneyUsecase creates a new instance of JourneyUsecase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*JourneyUsecase) ImportFromCSVFile

func (_m *JourneyUsecase) ImportFromCSVFile(c *gin.Context, reader io.Reader) (int64, []string)

ImportFromCSVFile provides a mock function with given fields: c, reader

type Parser

type Parser struct {
	mock.Mock
}

Parser is an autogenerated mock type for the Parser type

func NewParser

func NewParser(t mockConstructorTestingTNewParser) *Parser

NewParser creates a new instance of Parser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Parser) Parse

func (_m *Parser) Parse(logger *zap.SugaredLogger, reader io.Reader, journeyChan chan<- *domain.Journey) error

Parse provides a mock function with given fields: logger, reader, journeyChan

Jump to

Keyboard shortcuts

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