Documentation ¶
Overview ¶
This file may have been modified by Bytedance Ltd. and/or its affiliates (“Bytedance's Modifications”). All Bytedance's Modifications are Copyright (2022) Bytedance Ltd. and/or its affiliates.
Index ¶
- type Render
- func (r *Render) Header(w io.Writer, h *models.Header, headerTemplate string) error
- func (r *Render) LoadCustomTemplates(dir string) error
- func (r *Render) LoadCustomTemplatesName(name string) error
- func (r *Render) LoadFromData(templateData [][]byte)
- func (r *Render) TestFunction(w io.Writer, f *models.Function, printInputs bool, subtests bool, named bool, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Render ¶
type Render struct {
// contains filtered or unexported fields
}
func (*Render) LoadCustomTemplates ¶
LoadCustomTemplates allows to load in custom templates from a specified path.
func (*Render) LoadCustomTemplatesName ¶
LoadCustomTemplatesName allows to load in custom templates of a specified name from the templates directory.
func (*Render) LoadFromData ¶
LoadFromData allows to load from a data slice
func (*Render) TestFunction ¶
func (r *Render) TestFunction( w io.Writer, f *models.Function, printInputs bool, subtests bool, named bool, parallel bool, params map[string]interface{}, mock []string, builder []string, middleBuilder []string, testCaseNum int, useMockType int, Uid string, rowData string, testMode string, filePath string, globalInit []string, ) error
Click to show internal directories.
Click to hide internal directories.