testtool

package
v0.0.0-...-6a3170c Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertObject

func AssertObject(t TestingT, got interface{}, expectPath string,
	assert func(got, expect interface{}),
)

AssertObject compares the given object with the object in the given file. It uses json as encoder and decoder.

func DeepEqualObject

func DeepEqualObject(t *testing.T, got interface{}, expectPath string)

DeepEqualObject compares the given object with the object in the given file. It uses json as encoder and decoder.

func GetRepositoryRoot

func GetRepositoryRoot() (string, error)

GetRepositoryRoot returns the root path of the repository.zazz

Types

type TestingT

type TestingT interface {
	Logf(format string, args ...any)
	FailNow()
	Helper()
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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