mocks

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateConfig

type TemplateConfig struct {
	mock.Mock
}

TemplateConfig is an autogenerated mock type for the TemplateConfig type

func (*TemplateConfig) GetExtension

func (_m *TemplateConfig) GetExtension() string

GetExtension provides a mock function with given fields:

func (*TemplateConfig) GetFS

func (_m *TemplateConfig) GetFS() verbisfs.FS

GetFS provides a mock function with given fields:

func (*TemplateConfig) GetMaster

func (_m *TemplateConfig) GetMaster() string

GetMaster provides a mock function with given fields:

func (*TemplateConfig) GetRoot

func (_m *TemplateConfig) GetRoot() string

GetRoot provides a mock function with given fields:

type TemplateDataGetter

type TemplateDataGetter struct {
	mock.Mock
}

TemplateDataGetter is an autogenerated mock type for the TemplateDataGetter type

func (*TemplateDataGetter) Data

func (_m *TemplateDataGetter) Data(ctx *gin.Context, post *domain.PostDatum) interface{}

Data provides a mock function with given fields: ctx, post

type TemplateExecutor

type TemplateExecutor struct {
	mock.Mock
}

TemplateExecutor is an autogenerated mock type for the TemplateExecutor type

func (*TemplateExecutor) Config

func (_m *TemplateExecutor) Config() tpl.TemplateConfig

Config provides a mock function with given fields:

func (*TemplateExecutor) Execute

func (_m *TemplateExecutor) Execute(w io.Writer, name string, data interface{}) (string, error)

Execute provides a mock function with given fields: w, name, data

func (*TemplateExecutor) ExecutePost

func (_m *TemplateExecutor) ExecutePost(w io.Writer, name string, ctx *gin.Context, post *domain.PostDatum) (string, error)

ExecutePost provides a mock function with given fields: w, name, ctx, post

func (*TemplateExecutor) Executor

func (_m *TemplateExecutor) Executor() tpl.TemplateExecutor

Executor provides a mock function with given fields:

func (*TemplateExecutor) Exists

func (_m *TemplateExecutor) Exists(template string) bool

Exists provides a mock function with given fields: template

type TemplateFuncGetter

type TemplateFuncGetter struct {
	mock.Mock
}

TemplateFuncGetter is an autogenerated mock type for the TemplateFuncGetter type

func (*TemplateFuncGetter) FuncMap

FuncMap provides a mock function with given fields: ctx, post, cfg

func (*TemplateFuncGetter) GenericFuncMap

func (_m *TemplateFuncGetter) GenericFuncMap() template.FuncMap

GenericFuncMap provides a mock function with given fields:

type TemplateHandler

type TemplateHandler struct {
	mock.Mock
}

TemplateHandler is an autogenerated mock type for the TemplateHandler type

func (*TemplateHandler) Data

func (_m *TemplateHandler) Data(ctx *gin.Context, post *domain.PostDatum) interface{}

Data provides a mock function with given fields: ctx, post

func (*TemplateHandler) ExecuteTpl

func (_m *TemplateHandler) ExecuteTpl(w io.Writer, text string, data interface{}) error

ExecuteTpl provides a mock function with given fields: w, text, data

func (*TemplateHandler) FuncMap

FuncMap provides a mock function with given fields: ctx, post, cfg

func (*TemplateHandler) GenericFuncMap

func (_m *TemplateHandler) GenericFuncMap() template.FuncMap

GenericFuncMap provides a mock function with given fields:

func (*TemplateHandler) Prepare

Prepare provides a mock function with given fields: c

Directories

Path Synopsis
funcs

Jump to

Keyboard shortcuts

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