testutils

package
v0.0.0-...-7ae9f15 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB_WAL_PATH = data.DB_PATH + "-wal"
	DB_SHM_PATH = data.DB_PATH + "-shm"
)

Variables

This section is empty.

Functions

func BackupAndRestore

func BackupAndRestore(t testing.TB) func()

func BackupAndRestoreEnv

func BackupAndRestoreEnv(k string) func()

func BackupAndRestoreWithId

func BackupAndRestoreWithId(t testing.TB, id string) func()

func CompareGoldens

func CompareGoldens(t testing.TB, out, goldenName string)

func GetOsVersion

func GetOsVersion(t *testing.T) string

func IsGithubAction

func IsGithubAction() bool

func IsOnline

func IsOnline() bool

func MakeFakeHistoryEntry

func MakeFakeHistoryEntry(command string) data.HistoryEntry

func ResetFakeHistoryTimestamp

func ResetFakeHistoryTimestamp()

func ResetLocalState

func ResetLocalState(t testing.TB)

func RunTestServer

func RunTestServer() func()

func TestLog

func TestLog(t testing.TB, line string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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