Documentation ¶
Index ¶
- Variables
- func BytesEq(t testing.TB, a, e []byte) bool
- func Expand(specs ...string) []byte
- func HexDump(b []byte, highlightOff int) string
- type TestJournal
- func (j *TestJournal) Advance(d time.Duration)
- func (j *TestJournal) Data(fileName string) []byte
- func (j *TestJournal) Eq(fileName string, expected ...string)
- func (j *TestJournal) FileNames() []string
- func (j *TestJournal) Now() time.Time
- func (j *TestJournal) Put(fileName string, expected ...string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Start = time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC)
Functions ¶
Types ¶
type TestJournal ¶
type TestJournal struct { *journal.Journal T testing.TB FS fstest.MapFS Dir string // contains filtered or unexported fields }
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)
Click to show internal directories.
Click to hide internal directories.