fixture

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package fixture builds on-disk workspace fixtures for tests: a map of relative paths to file contents, written into a temp directory. Used by the workspace, extractor, and check test suites (including the lessons register), where each scenario is a small literal workspace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(t *testing.T, files map[string]string) string

Write materializes files (relative slash paths -> contents) under a fresh temp directory and returns its path. Parent directories are created as needed. An entry whose path ends in "/" creates a bare directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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