testutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSSPath

func CSSPath(templPath string) string

func Format

func Format(tf *parser.TemplateFile) (string, error)

func Generate

func Generate(templPath string, templAst *parser.TemplateFile) ([]byte, string, error)

func GoPath

func GoPath(templPath string) string

func Golden

func Golden(path string, actual any) error

Golden compares the actual output with the expected output. Use -update to update the expected output.

func Parse

func Parse(templPath, templCode string) (*parser.TemplateFile, error)

func TemplPath

func TemplPath(templPath string) string

func TestData

func TestData(dir string) (dirs []string, err error)

func TxtPath

func TxtPath(templPath string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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