driverfx

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package driverfx supplies driver fixtures for tests.

LocalFS returns a localfs.Driver rooted at a fresh tempdir (cleaned up via t.Cleanup), saving every test from the boilerplate of MkdirTemp + RemoveAll + driver wiring.

Other driver backends (s3, future faulty/lossy variants) will expose similar one-call constructors here as they land.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocalFS

func LocalFS(t testing.TB) *localfs.Driver

LocalFS returns a fresh localfs.Driver in t.TempDir() with fsync off.

Types

This section is empty.

Jump to

Keyboard shortcuts

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