gentest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package gentest contains generator test helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Golden

func Golden(t *testing.T, filename string, opts ...gen.Option)

Golden test code generator using golden files. Golden files can be updated using -update CLI flag.

func GoldenDoc

func GoldenDoc(t *testing.T, filename string)

GoldenDoc test doc generator using golden files. Golden files can be updated using -update CLI flag.

func GoldenGlob

func GoldenGlob(t *testing.T, pattern string, opts ...gen.Option)

GoldenGlob calls Golden on files matching to the glob pattern.

func GoldenGlobDoc

func GoldenGlobDoc(t *testing.T, pattern string)

GoldenGlobDoc calls GoldenDoc on files matching to the glob pattern.

Types

This section is empty.

Jump to

Keyboard shortcuts

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