mocks

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datetime added in v1.0.6

type Datetime struct {
	mock.Mock
}

Datetime is an autogenerated mock type for the Datetime type

func NewDatetime added in v1.0.6

func NewDatetime(t interface {
	mock.TestingT
	Cleanup(func())
},
) *Datetime

NewDatetime creates a new instance of Datetime. 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 (*Datetime) EXPECT added in v1.0.6

func (_m *Datetime) EXPECT() *Datetime_Expecter

func (*Datetime) FormatDate added in v1.0.6

func (_m *Datetime) FormatDate(_a0 string, format string) (string, error)

FormatDate provides a mock function with given fields: _a0, format

func (*Datetime) FormatDatetime added in v1.0.6

func (_m *Datetime) FormatDatetime(_a0 time.Time, format string) string

FormatDatetime provides a mock function with given fields: _a0, format

func (*Datetime) GetDateNow added in v1.0.6

func (_m *Datetime) GetDateNow(format string) string

GetDateNow provides a mock function with given fields: format

type Datetime_Expecter added in v1.0.6

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

func (*Datetime_Expecter) FormatDate added in v1.0.6

func (_e *Datetime_Expecter) FormatDate(_a0 interface{}, format interface{}) *Datetime_FormatDate_Call

FormatDate is a helper method to define mock.On call

  • _a0 string
  • format string

func (*Datetime_Expecter) FormatDatetime added in v1.0.6

func (_e *Datetime_Expecter) FormatDatetime(_a0 interface{}, format interface{}) *Datetime_FormatDatetime_Call

FormatDatetime is a helper method to define mock.On call

  • _a0 time.Time
  • format string

func (*Datetime_Expecter) GetDateNow added in v1.0.6

func (_e *Datetime_Expecter) GetDateNow(format interface{}) *Datetime_GetDateNow_Call

GetDateNow is a helper method to define mock.On call

  • format string

type Datetime_FormatDate_Call added in v1.0.6

type Datetime_FormatDate_Call struct {
	*mock.Call
}

Datetime_FormatDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FormatDate'

func (*Datetime_FormatDate_Call) Return added in v1.0.6

func (*Datetime_FormatDate_Call) Run added in v1.0.6

func (_c *Datetime_FormatDate_Call) Run(run func(_a0 string, format string)) *Datetime_FormatDate_Call

func (*Datetime_FormatDate_Call) RunAndReturn added in v1.0.6

type Datetime_FormatDatetime_Call added in v1.0.6

type Datetime_FormatDatetime_Call struct {
	*mock.Call
}

Datetime_FormatDatetime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FormatDatetime'

func (*Datetime_FormatDatetime_Call) Return added in v1.0.6

func (*Datetime_FormatDatetime_Call) Run added in v1.0.6

func (*Datetime_FormatDatetime_Call) RunAndReturn added in v1.0.6

type Datetime_GetDateNow_Call added in v1.0.6

type Datetime_GetDateNow_Call struct {
	*mock.Call
}

Datetime_GetDateNow_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDateNow'

func (*Datetime_GetDateNow_Call) Return added in v1.0.6

func (*Datetime_GetDateNow_Call) Run added in v1.0.6

func (_c *Datetime_GetDateNow_Call) Run(run func(format string)) *Datetime_GetDateNow_Call

func (*Datetime_GetDateNow_Call) RunAndReturn added in v1.0.6

func (_c *Datetime_GetDateNow_Call) RunAndReturn(run func(string) string) *Datetime_GetDateNow_Call

Jump to

Keyboard shortcuts

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