helpers

package
v0.0.0-...-8710645 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CSVTransactionsPath = filepath.Join(TransactionsPath, "csv")
View Source
var MongoURI = "mongodb://localhost"
View Source
var TransactionsPath = filepath.Join("fixtures", "transactions")
View Source
var XLSXTransactionsPath = filepath.Join(TransactionsPath, "xlsx")

Functions

func CheckUpdateFlag

func CheckUpdateFlag(t *testing.T, fixture string, actual string)

func ExpectContains

func ExpectContains(t *testing.T, s, subString string)

func ExpectEquals

func ExpectEquals(t *testing.T, actual interface{}, expected interface{})

func ExpectEqualsGolden

func ExpectEqualsGolden(t *testing.T, fixture string, actual string)

func ExpectError

func ExpectError(t *testing.T, err error)

func FailTestIfErr

func FailTestIfErr(t *testing.T, err error)

func OpenFixture

func OpenFixture(t *testing.T, fixtureFileName string) *os.File

func ReadCSVFixture

func ReadCSVFixture(t *testing.T, fixtureFileName string) [][]string

func UTCDate

func UTCDate(t *testing.T, year int, month time.Month, day int) time.Time

Types

type BadWriter

type BadWriter struct{}

func (*BadWriter) Write

func (w *BadWriter) Write(_ []byte) (n int, err error)

Jump to

Keyboard shortcuts

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