testpath

package
v0.85.0-pre.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package testpath provides shared test-only path helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathRelativeToConfiguredWorkingDirectory

func PathRelativeToConfiguredWorkingDirectory(
	currentWorkingDirectory string,
	configuredPath string,
) (string, error)

PathRelativeToConfiguredWorkingDirectory returns configuredPath as currentWorkingDirectory-relative when configuredPath is machine-absolute; otherwise it returns configuredPath unchanged.

func PathRelativeToCurrentWorkingDirectory

func PathRelativeToCurrentWorkingDirectory(
	tb testing.TB,
	configuredPath string,
) string

PathRelativeToCurrentWorkingDirectory returns configuredPath as a current-working-directory-relative path when configuredPath is machine-absolute; otherwise it returns configuredPath unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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