render

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

bindata.go must be generated with https://github.com/jteeuwen/go-bindata.

From the gotests root run $ go generate ./....

Or run $ go-bindata -pkg=bindata -o "internal/render/bindata/bindata.go" internal/render/templates/.

During development run $ go-bindata -pkg=bindata -o "internal/render/bindata/bindata.go" -debug internal/render/templates/ instead.

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

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 New

func New() *Render

func (*Render) Header

func (r *Render) Header(w io.Writer, h *models.Header, headerTemplate string) error

func (*Render) LoadCustomTemplates

func (r *Render) LoadCustomTemplates(dir string) error

LoadCustomTemplates allows to load in custom templates from a specified path.

func (*Render) LoadCustomTemplatesName

func (r *Render) LoadCustomTemplatesName(name string) error

LoadCustomTemplatesName allows to load in custom templates of a specified name from the templates directory.

func (*Render) LoadFromData

func (r *Render) LoadFromData(templateData [][]byte)

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

Directories

Path Synopsis
Code generated for package bindata by go-bindata DO NOT EDIT.
Code generated for package bindata by go-bindata DO NOT EDIT.

Jump to

Keyboard shortcuts

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