mocks

package
v0.0.0-...-440c973 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type MockHelperService

type MockHelperService struct {
	// contains filtered or unexported fields
}

MockHelperService is a mock of Service interface

func NewHelperMockHelperService

func NewHelperMockHelperService(ctrl *gomock.Controller) *MockHelperService

NewHelperMockHelperService creates a new mock instance

func (*MockHelperService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockHelperService) GenerateEtag

func (m *MockHelperService) GenerateEtag() (string, error)

GenerateEtag mocks base method

func (*MockHelperService) HandleAttachmentTypeValidation

func (m *MockHelperService) HandleAttachmentTypeValidation(w http.ResponseWriter, req *http.Request, responseMessage string, err error) int

HandleAttachmentTypeValidation mocks base method

func (*MockHelperService) HandleAttachmentValidation

func (m *MockHelperService) HandleAttachmentValidation(w http.ResponseWriter, req *http.Request, transactionID string, attachment models.AttachmentResourceDao, err error) bool

HandleAttachmentValidation mocks base method

func (*MockHelperService) HandleBodyDecodedValidation

func (m *MockHelperService) HandleBodyDecodedValidation(w http.ResponseWriter, req *http.Request, transactionID string, err error) bool

HandleBodyDecodedValidation mocks base method

func (*MockHelperService) HandleCreateResourceValidation

func (m *MockHelperService) HandleCreateResourceValidation(w http.ResponseWriter, req *http.Request, httpStatus int, err error) bool

HandleCreateResourceValidation mocks base method

func (*MockHelperService) HandleDeleteResourceValidation

func (m *MockHelperService) HandleDeleteResourceValidation(w http.ResponseWriter, req *http.Request, resourceType string) (bool, string)

HandleCreateResourceValidation mocks base method

func (*MockHelperService) HandleEtagGenerationValidation

func (m *MockHelperService) HandleEtagGenerationValidation(err error) bool

HandleEtagGenerationValidation mocks base method

func (*MockHelperService) HandleMandatoryFieldValidation

func (m *MockHelperService) HandleMandatoryFieldValidation(w http.ResponseWriter, req *http.Request, errs string) bool

HandleMandatoryFieldValidation mocks base method

func (*MockHelperService) HandleTransactionIdExistsValidation

func (m *MockHelperService) HandleTransactionIdExistsValidation(w http.ResponseWriter, req *http.Request, transactionID string) (bool, string)

HandleTransactionIdExistsValidation mocks base method

func (*MockHelperService) HandleTransactionNotClosedValidation

func (m *MockHelperService) HandleTransactionNotClosedValidation(w http.ResponseWriter, req *http.Request, transactionID string, isTransactionClosed bool, httpStatus int, err error) bool

HandleTransactionNotClosedValidation mocks base method

type MockHelperServiceMockRecorder

type MockHelperServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockHelperServiceMockRecorder is the mock recorder for MockHelperService

func (*MockHelperServiceMockRecorder) GenerateEtag

func (mr *MockHelperServiceMockRecorder) GenerateEtag() *gomock.Call

GenerateEtag indicates an expected call of GenerateEtag

func (*MockHelperServiceMockRecorder) HandleAttachmentTypeValidation

func (mr *MockHelperServiceMockRecorder) HandleAttachmentTypeValidation(http, req, responseMessage, err interface{}) *gomock.Call

HandleAttachmentTypeValidation indicates an expected call of HandleAttachmentTypeValidation

func (*MockHelperServiceMockRecorder) HandleAttachmentValidation

func (mr *MockHelperServiceMockRecorder) HandleAttachmentValidation(http, req, transactionID, dao, err interface{}) *gomock.Call

HandleAttachmentValidation indicates an expected call of HandleAttachmentValidation

func (*MockHelperServiceMockRecorder) HandleBodyDecodedValidation

func (mr *MockHelperServiceMockRecorder) HandleBodyDecodedValidation(http, req, transactionID, err interface{}) *gomock.Call

HandleBodyDecodedValidation indicates an expected call of HandleBodyDecodedValidation

func (*MockHelperServiceMockRecorder) HandleCreateResourceValidation

func (mr *MockHelperServiceMockRecorder) HandleCreateResourceValidation(w, req, httpStatus, err interface{}) *gomock.Call

HandleCreateResourceValidation indicates an expected call of HandleCreateResourceValidation

func (*MockHelperServiceMockRecorder) HandleDeleteResourceValidation

func (mr *MockHelperServiceMockRecorder) HandleDeleteResourceValidation(w, req, resourceType interface{}) *gomock.Call

HandleCreateResourceValidation indicates an expected call of HandleCreateResourceValidation

func (*MockHelperServiceMockRecorder) HandleEtagGenerationValidation

func (mr *MockHelperServiceMockRecorder) HandleEtagGenerationValidation(err interface{}) *gomock.Call

HandleEtagGenerationValidation indicates an expected call of HandleEtagGenerationValidation

func (*MockHelperServiceMockRecorder) HandleMandatoryFieldValidation

func (mr *MockHelperServiceMockRecorder) HandleMandatoryFieldValidation(http, req, errs, err interface{}) *gomock.Call

HandleMandatoryFieldValidation indicates an expected call of HandleMandatoryFieldValidation

func (*MockHelperServiceMockRecorder) HandleTransactionIdExistsValidation

func (mr *MockHelperServiceMockRecorder) HandleTransactionIdExistsValidation(w, req, transactionID interface{}) *gomock.Call

HandleTransactionIdExistsValidation indicates an expected call of HandleTransactionIdExistsValidation

func (*MockHelperServiceMockRecorder) HandleTransactionNotClosedValidation

func (mr *MockHelperServiceMockRecorder) HandleTransactionNotClosedValidation(w, req, transactionID, isTransactionClosed, httpStatus, err interface{}) *gomock.Call

HandleTransactionNotClosedValidation indicates an expected call of HandleTransactionNotClosedValidation

type MockService

type MockService struct {
	// contains filtered or unexported fields
}

MockService is a mock of Service interface

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance

func (*MockService) AddAttachmentToInsolvencyResource

func (m *MockService) AddAttachmentToInsolvencyResource(transactionID, fileID, attachmentType string) (*models.AttachmentResourceDao, error)

AddAttachmentToInsolvencyResource mocks base method

func (*MockService) AppointPractitioner

func (m *MockService) AppointPractitioner(dao *models.AppointmentResourceDao, transactionID, practitionerID string) (error, int)

AppointPractitioner mocks base method

func (*MockService) CreateInsolvencyResource

func (m *MockService) CreateInsolvencyResource(dao *models.InsolvencyResourceDao) (error, int)

CreateInsolvencyResource mocks base method

func (*MockService) CreatePractitionersResource

func (m *MockService) CreatePractitionersResource(dao *models.PractitionerResourceDao, transactionID string) (error, int)

CreatePractitionersResource mocks base method

func (*MockService) CreateProgressReportResource

func (m *MockService) CreateProgressReportResource(dao *models.ProgressReportResourceDao, transactionID string) (int, error)

CreateProgressReportResource mocks base method

func (*MockService) CreateResolutionResource

func (m *MockService) CreateResolutionResource(dao *models.ResolutionResourceDao, transactionID string) (int, error)

CreateResolutionResource mocks base method

func (*MockService) CreateStatementOfAffairsResource

func (m *MockService) CreateStatementOfAffairsResource(dao *models.StatementOfAffairsResourceDao, transactionID string) (int, error)

CreateStatementOfAffairsResource mocks base method

func (*MockService) DeleteAttachmentResource

func (m *MockService) DeleteAttachmentResource(transactionID, attachmentID string) (int, error)

DeleteAttachmentResource mocks base method

func (*MockService) DeletePractitioner

func (m *MockService) DeletePractitioner(practitionerID, transactionID string) (error, int)

DeletePractitioner mocks base method

func (*MockService) DeletePractitionerAppointment

func (m *MockService) DeletePractitionerAppointment(transactionID, practitionerID string) (error, int)

DeletePractitionerAppointment mocks base method

func (*MockService) DeleteProgressReportResource

func (m *MockService) DeleteProgressReportResource(transactionID string) (int, error)

DeleteProgressReportResource

func (*MockService) DeleteResolutionResource

func (m *MockService) DeleteResolutionResource(transactionID string) (int, error)

DeleteResolutionResource mocks base method

func (*MockService) DeleteStatementOfAffairsResource

func (m *MockService) DeleteStatementOfAffairsResource(transactionID string) (int, error)

DeleteStatementOfAffairsResource mocks base method

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockService) GetAttachmentFromInsolvencyResource

func (m *MockService) GetAttachmentFromInsolvencyResource(transactionID, attachmentID string) (models.AttachmentResourceDao, error)

GetAttachmentFromInsolvencyResource mocks base method

func (*MockService) GetAttachmentResources

func (m *MockService) GetAttachmentResources(transactionID string) ([]models.AttachmentResourceDao, error)

GetAttachmentResources mocks base method

func (*MockService) GetInsolvencyResource

func (m *MockService) GetInsolvencyResource(transactionID string) (models.InsolvencyResourceDao, error)

GetInsolvencyResource mocks base method

func (*MockService) GetPractitionerResource

func (m *MockService) GetPractitionerResource(practitionerID, transactionID string) (models.PractitionerResourceDao, error)

GetPractitionerResource mocks base method

func (*MockService) GetPractitionerResources

func (m *MockService) GetPractitionerResources(transactionID string) ([]models.PractitionerResourceDao, error)

GetPractitionerResources mocks base method

func (*MockService) GetProgressReportResource

func (m *MockService) GetProgressReportResource(transactionID string) (*models.ProgressReportResourceDao, error)

GetProgressReportResource mocks base method

func (*MockService) GetResolutionResource

func (m *MockService) GetResolutionResource(transactionID string) (models.ResolutionResourceDao, error)

GetResolutionResource mocks base method

func (*MockService) GetStatementOfAffairsResource

func (m *MockService) GetStatementOfAffairsResource(transactionID string) (models.StatementOfAffairsResourceDao, error)

GetStatementOfAffairsResource mocks base method

func (*MockService) UpdateAttachmentStatus

func (m *MockService) UpdateAttachmentStatus(transactionID, attachmentID, avStatus string) (int, error)

UpdateAttachmentStatus mocks base method

type MockServiceMockRecorder

type MockServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockServiceMockRecorder is the mock recorder for MockService

func (*MockServiceMockRecorder) AddAttachmentToInsolvencyResource

func (mr *MockServiceMockRecorder) AddAttachmentToInsolvencyResource(transactionID, fileID, attachmentType interface{}) *gomock.Call

AddAttachmentToInsolvencyResource indicates an expected call of AddAttachmentToInsolvencyResource

func (*MockServiceMockRecorder) AppointPractitioner

func (mr *MockServiceMockRecorder) AppointPractitioner(dao, transactionID, practitionerID interface{}) *gomock.Call

AppointPractitioner indicates an expected call of AppointPractitioner

func (*MockServiceMockRecorder) CreateInsolvencyResource

func (mr *MockServiceMockRecorder) CreateInsolvencyResource(dao interface{}) *gomock.Call

CreateInsolvencyResource indicates an expected call of CreateInsolvencyResource

func (*MockServiceMockRecorder) CreatePractitionersResource

func (mr *MockServiceMockRecorder) CreatePractitionersResource(dao, transactionID interface{}) *gomock.Call

CreatePractitionersResource indicates an expected call of CreatePractitionersResource

func (*MockServiceMockRecorder) CreateProgressReportResource

func (mr *MockServiceMockRecorder) CreateProgressReportResource(dao, transactionID interface{}) *gomock.Call

CreateProgressReportResource indicates an expected call of CreateProgressReportResource

func (*MockServiceMockRecorder) CreateResolutionResource

func (mr *MockServiceMockRecorder) CreateResolutionResource(dao, transactionID interface{}) *gomock.Call

CreateResolutionResource indicates an expected call of CreateResolutionResource

func (*MockServiceMockRecorder) CreateStatementOfAffairsResource

func (mr *MockServiceMockRecorder) CreateStatementOfAffairsResource(dao, transactionID interface{}) *gomock.Call

CreateStatementOfAffairsResource indicates an expected call of CreateStatementOfAffairsResource

func (*MockServiceMockRecorder) DeleteAttachmentResource

func (mr *MockServiceMockRecorder) DeleteAttachmentResource(transactionID, attachmentID interface{}) *gomock.Call

DeleteAttachmentResource indicates an expected call of DeleteAttachmentResource

func (*MockServiceMockRecorder) DeletePractitioner

func (mr *MockServiceMockRecorder) DeletePractitioner(practitionerID, transactionID interface{}) *gomock.Call

DeletePractitioner indicates an expected call of DeletePractitioner

func (*MockServiceMockRecorder) DeletePractitionerAppointment

func (mr *MockServiceMockRecorder) DeletePractitionerAppointment(transactionID, practitionerID interface{}) *gomock.Call

DeletePractitionerAppointment indicates an expected call of DeletePractitionerAppointment

func (*MockServiceMockRecorder) DeleteProgressReportResource

func (mr *MockServiceMockRecorder) DeleteProgressReportResource(transactionID interface{}) *gomock.Call

DeleteProgressReportResource indicates an expected call of DeleteProgressReportResource

func (*MockServiceMockRecorder) DeleteResolutionResource

func (mr *MockServiceMockRecorder) DeleteResolutionResource(transactionID interface{}) *gomock.Call

DeleteResolutionResource indicates an expected call of DeleteResolutionResource

func (*MockServiceMockRecorder) DeleteStatementOfAffairsResource

func (mr *MockServiceMockRecorder) DeleteStatementOfAffairsResource(transactionID interface{}) *gomock.Call

DeleteStatementOfAffairsResource indicates an expected call of DeleteStatementOfAffairsResource

func (*MockServiceMockRecorder) GetAttachmentFromInsolvencyResource

func (mr *MockServiceMockRecorder) GetAttachmentFromInsolvencyResource(transactionID, attachmentID interface{}) *gomock.Call

GetAttachmentFromInsolvencyResource indicates an expected call of GetAttachmentFromInsolvencyResource

func (*MockServiceMockRecorder) GetAttachmentResources

func (mr *MockServiceMockRecorder) GetAttachmentResources(transactionID interface{}) *gomock.Call

GetAttachmentResources indicates an expected call of GetAttachmentResources

func (*MockServiceMockRecorder) GetInsolvencyResource

func (mr *MockServiceMockRecorder) GetInsolvencyResource(transactionID interface{}) *gomock.Call

GetInsolvencyResource indicates an expected call of GetInsolvencyResource

func (*MockServiceMockRecorder) GetPractitionerResource

func (mr *MockServiceMockRecorder) GetPractitionerResource(practitionerID, transactionID interface{}) *gomock.Call

GetPractitionerResource indicates an expected call of GetPractitionerResource

func (*MockServiceMockRecorder) GetPractitionerResources

func (mr *MockServiceMockRecorder) GetPractitionerResources(transactionID interface{}) *gomock.Call

GetPractitionerResources indicates an expected call of GetPractitionerResources

func (*MockServiceMockRecorder) GetProgressReportResource

func (mr *MockServiceMockRecorder) GetProgressReportResource(transactionID interface{}) *gomock.Call

GetProgressReportResource indicates an expected call of GetProgressReportResource

func (*MockServiceMockRecorder) GetResolutionResource

func (mr *MockServiceMockRecorder) GetResolutionResource(transactionID interface{}) *gomock.Call

GetResolutionResource indicates an expected call of GetResolutionResource

func (*MockServiceMockRecorder) GetStatementOfAffairsResource

func (mr *MockServiceMockRecorder) GetStatementOfAffairsResource(transactionID interface{}) *gomock.Call

GetStatementOfAffairsResource indicates an expected call of GetStatementOfAffairsResource

func (*MockServiceMockRecorder) UpdateAttachmentStatus

func (mr *MockServiceMockRecorder) UpdateAttachmentStatus(transactionID, attachmentID, avStatus interface{}) *gomock.Call

UpdateAttachmentStatus indicates an expected call of UpdateAttachmentStatus

Jump to

Keyboard shortcuts

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