Documentation ¶
Overview ¶
Package txfiletest provides utilities for testing on top of txfile.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestFile ¶
type TestFile struct { *txfile.File Path string // contains filtered or unexported fields }
TestFile wraps a txfile.File structure for testing.
func SetupTestFile ¶
func SetupTestFile(t testT, opts txfile.Options) (tf *TestFile, teardown func())
SetupTestFile creates a new testfile in a temporary directory. The teardown function will remove the directory and the temporary file.
Click to show internal directories.
Click to hide internal directories.