Help us shape the future of Go! Take the 2026 Go Developer Survey

testutil

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package testutil provides shared test helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileURL added in v0.39.0

func FileURL(path string) string

FileURL converts an absolute local fixture path to an authority-free file URL. The leading slash keeps a Windows drive in the path, not the hostname.

func RepoFile added in v0.39.0

func RepoFile(t testing.TB, parts ...string) string

RepoFile locates checked-in fixtures independently of a test package's cwd.

func StripTokenCounts

func StripTokenCounts(s string) string

StripTokenCounts replaces token-count numbers (and related derived values) with a fixed placeholder so format assertions don't depend on exact counts.

Types

This section is empty.

Directories

Path Synopsis
Package readeroracle builds the checksum-pinned 15c reader for native wire compatibility tests.
Package readeroracle builds the checksum-pinned 15c reader for native wire compatibility tests.

Jump to

Keyboard shortcuts

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