package gold

import "github.com/ClickHouse/ch-go/internal/gold"

Package gold implements golden files.

Index

Functions

func Bytes

func Bytes(t testing.TB, data []byte, name ...string)

Bytes check binary golden file.

func Init

func Init()

Init should be called in TestMain.

func Str

func Str(t testing.TB, s string, name ...string)

Str checks text golden file.

Source Files

gold.go

Version
v0.46.1
Published
Jul 7, 2022
Platform
js/wasm
Imports
8 packages
Last checked
1 hour ago

Tools for package owners.