Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSOptions ¶
type FSOptions struct {
ProjectDir string // subdirectory name under base (default: "testproject")
}
FSOptions allows overriding the project directory name.
type Harness ¶
Harness provides an isolated filesystem environment for integration tests. It creates temp directories, sets XDG env vars, registers a project, and optionally persists config — all driven by what the caller wired into the Factory.
func (*Harness) NewIsolatedFS ¶
func (h *Harness) NewIsolatedFS(opts *FSOptions) *SetupResult
NewIsolatedFS creates an isolated test environment.
Delegates XDG directory setup to testenv.New, then adds a project directory and chdirs into it (restored on cleanup).
Click to show internal directories.
Click to hide internal directories.