journaltest

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Start = time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC)

Functions

func BytesEq

func BytesEq(t testing.TB, a, e []byte) bool

func Expand

func Expand(specs ...string) []byte

func HexDump

func HexDump(b []byte, highlightOff int) string

Types

type TestJournal

type TestJournal struct {
	*journal.Journal

	T   testing.TB
	FS  fstest.MapFS
	Dir string
	// contains filtered or unexported fields
}

func Writable

func Writable(t *testing.T, o journal.Options) *TestJournal

func (*TestJournal) Advance

func (j *TestJournal) Advance(d time.Duration)

func (*TestJournal) Data

func (j *TestJournal) Data(fileName string) []byte

func (*TestJournal) Eq

func (j *TestJournal) Eq(fileName string, expected ...string)

func (*TestJournal) FileNames

func (j *TestJournal) FileNames() []string

func (*TestJournal) Now

func (j *TestJournal) Now() time.Time

func (*TestJournal) Put added in v0.3.10

func (j *TestJournal) Put(fileName string, expected ...string)

Jump to

Keyboard shortcuts

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