gold

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package gold implements golden files.

Index

Constants

This section is empty.

Variables

This section is empty.

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 NormalizeNewlines

func NormalizeNewlines(s string) string

NormalizeNewlines normalizes \r\n (windows) and \r (mac) into \n (unix).

func Str

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

Str checks text golden file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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