Documentation
¶
Index ¶
- type MockPostTypeChecker
- type MockPostTypeChecker_Exists_Call
- func (_c *MockPostTypeChecker_Exists_Call) Return(b bool) *MockPostTypeChecker_Exists_Call
- func (_c *MockPostTypeChecker_Exists_Call) Run(run func(slug string)) *MockPostTypeChecker_Exists_Call
- func (_c *MockPostTypeChecker_Exists_Call) RunAndReturn(run func(slug string) bool) *MockPostTypeChecker_Exists_Call
- type MockPostTypeChecker_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPostTypeChecker ¶
MockPostTypeChecker is an autogenerated mock type for the PostTypeChecker type
func NewMockPostTypeChecker ¶
func NewMockPostTypeChecker(t interface {
mock.TestingT
Cleanup(func())
}) *MockPostTypeChecker
NewMockPostTypeChecker creates a new instance of MockPostTypeChecker. 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 (*MockPostTypeChecker) EXPECT ¶
func (_m *MockPostTypeChecker) EXPECT() *MockPostTypeChecker_Expecter
func (*MockPostTypeChecker) Exists ¶
func (_mock *MockPostTypeChecker) Exists(slug string) bool
Exists provides a mock function for the type MockPostTypeChecker
type MockPostTypeChecker_Exists_Call ¶
MockPostTypeChecker_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*MockPostTypeChecker_Exists_Call) Return ¶
func (_c *MockPostTypeChecker_Exists_Call) Return(b bool) *MockPostTypeChecker_Exists_Call
func (*MockPostTypeChecker_Exists_Call) Run ¶
func (_c *MockPostTypeChecker_Exists_Call) Run(run func(slug string)) *MockPostTypeChecker_Exists_Call
func (*MockPostTypeChecker_Exists_Call) RunAndReturn ¶
func (_c *MockPostTypeChecker_Exists_Call) RunAndReturn(run func(slug string) bool) *MockPostTypeChecker_Exists_Call
type MockPostTypeChecker_Expecter ¶
type MockPostTypeChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPostTypeChecker_Expecter) Exists ¶
func (_e *MockPostTypeChecker_Expecter) Exists(slug any) *MockPostTypeChecker_Exists_Call
Exists is a helper method to define mock.On call
- slug string