gtesting

package module
v0.0.0-...-b4b7480 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: GPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TestWriteDebug = "GIRAFFE_TEST_WRITE_DEBUG"

	TestWriteDir = "/tmp/giraffe/test_debug"
)

Variables

This section is empty.

Functions

func Check

func Check(
	enums map[string]string,
	transform func(name, value string) string,
) error

func CheckWith

func CheckWith(
	enums map[string]string,
	ignore map[string]struct{},
	overwrite map[string]string,
	transform func(string) string,
) error

func DashedTitleCasing

func DashedTitleCasing(
	s string,
) string

func EnsureDir

func EnsureDir() error

func Extract

func Extract(
	pkg []*packages.Package,
) (map[string]string, error)

func IsExtraTestDebug

func IsExtraTestDebug() bool

func NoError

func NoError(
	t *testing.T,
	err any,
)

func NoIgnore

func NoIgnore() map[string]struct{}

func NoOverwrite

func NoOverwrite() map[string]string

func Preamble

func Preamble(t *testing.T)

func ReadPkgCfg

func ReadPkgCfg() *packages.Config

func Write

func Write(
	t *testing.T,
	name string,
	content string,
)

func Zap

func Zap(t *testing.T) glog.Lg

Types

This section is empty.

Jump to

Keyboard shortcuts

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