testpath

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package testpath provides path helpers for test fixtures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsDir

func AbsDir(tb testing.TB, elems ...string) string

AbsDir returns the absolute path to the fixture directory formed by elems.

func Dir

func Dir(tb testing.TB, elems ...string) string

Dir joins elems and requires the resulting path to be a directory.

func ReadFile

func ReadFile(tb testing.TB, elems ...string) string

ReadFile joins elems, reads that file, and returns its contents. It fails the test if the file cannot be read.

Types

This section is empty.

Jump to

Keyboard shortcuts

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