testutil

package
v0.0.0-...-62a38f1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: BSD-3-Clause, BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCmp

func AssertCmp(t *testing.T, got interface{}, want interface{}, opts ...cmp.Option)

AssertCmp fails a test with a descriptive diff if got != want, respecting a set of compare options.

func AssertProtoEqual

func AssertProtoEqual(t *testing.T, got interface{}, want interface{})

func MustRunfile

func MustRunfile(path string) string

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

func NewFS

func NewFS(t *testing.T, files map[string][]byte) *FS

func (*FS) Open

func (f *FS) Open(name string) (fs.File, error)

Jump to

Keyboard shortcuts

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