Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICalculationInput ¶ added in v1.2.0
ICalculationInput is an autogenerated mock type for the ICalculationInput type
func NewICalculationInput ¶ added in v1.2.0
func NewICalculationInput(t interface {
mock.TestingT
Cleanup(func())
}) *ICalculationInput
NewICalculationInput creates a new instance of ICalculationInput. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ICalculationInput) Calculate ¶ added in v1.2.0
func (_m *ICalculationInput) Calculate() string
Calculate provides a mock function with given fields:
func (*ICalculationInput) GetInput ¶ added in v1.2.0
func (_m *ICalculationInput) GetInput() string
GetInput provides a mock function with given fields:
func (*ICalculationInput) Validate ¶ added in v1.2.0
func (_m *ICalculationInput) Validate() errors.WrappedError
Validate provides a mock function with given fields:
type ICalculatorService ¶
ICalculatorService is an autogenerated mock type for the ICalculatorService type
func NewICalculatorService ¶
func NewICalculatorService(t interface {
mock.TestingT
Cleanup(func())
}) *ICalculatorService
NewICalculatorService creates a new instance of ICalculatorService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ICalculatorService) Calculate ¶
func (_m *ICalculatorService) Calculate(_a0 context.Context, _a1 calculation.ICalculationInput) (calculation.CalculationResult, errors.WrappedError)
Calculate provides a mock function with given fields: _a0, _a1
func (*ICalculatorService) GetCalculationHistory ¶
func (_m *ICalculatorService) GetCalculationHistory(_a0 context.Context) calculation.CalculationHistory
GetCalculationHistory provides a mock function with given fields: _a0