templates

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMaker

type MockMaker struct {
	mock.Mock
}

MockMaker is an autogenerated mock type for the Maker type

func NewMockMaker

func NewMockMaker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMaker

NewMockMaker creates a new instance of MockMaker. 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 (*MockMaker) EXPECT

func (_m *MockMaker) EXPECT() *MockMaker_Expecter

func (*MockMaker) Make

func (_m *MockMaker) Make(config map[string]types.ServerTemplate) (templates.Templates, error)

Make provides a mock function with given fields: config

type MockMaker_Expecter

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

func (*MockMaker_Expecter) Make

func (_e *MockMaker_Expecter) Make(config interface{}) *MockMaker_Make_Call

Make is a helper method to define mock.On call

  • config map[string]types.ServerTemplate

type MockMaker_Make_Call

type MockMaker_Make_Call struct {
	*mock.Call
}

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

func (*MockMaker_Make_Call) Return

func (*MockMaker_Make_Call) Run

func (_c *MockMaker_Make_Call) Run(run func(config map[string]types.ServerTemplate)) *MockMaker_Make_Call

func (*MockMaker_Make_Call) RunAndReturn

type MockTemplate

type MockTemplate struct {
	mock.Mock
}

MockTemplate is an autogenerated mock type for the Template type

func NewMockTemplate

func NewMockTemplate(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTemplate

NewMockTemplate creates a new instance of MockTemplate. 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 (*MockTemplate) EXPECT

func (_m *MockTemplate) EXPECT() *MockTemplate_Expecter

func (*MockTemplate) FilePath

func (_m *MockTemplate) FilePath() string

FilePath provides a mock function with given fields:

type MockTemplate_Expecter

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

func (*MockTemplate_Expecter) FilePath

FilePath is a helper method to define mock.On call

type MockTemplate_FilePath_Call

type MockTemplate_FilePath_Call struct {
	*mock.Call
}

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

func (*MockTemplate_FilePath_Call) Return

func (*MockTemplate_FilePath_Call) Run

func (*MockTemplate_FilePath_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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