testutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package testutil holds tiny shared helpers used across the `core/internal/...` test packages. Each helper is exported only because Go requires that for cross-package use; nothing here is part of any production code path.

The helpers in this package MUST NOT grow into a test framework — keep them small and obvious, or move them back next to their callers when only one test package uses them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertErrCode

func AssertErrCode(t testing.TB, err error, want errcode.Code)

AssertErrCode fails t when err is not (or does not wrap) a *errcode.Error whose Code equals want. Used by every test package that needs to anchor on the error-code taxonomy contract.

func SkipIfCaseInsensitiveFS

func SkipIfCaseInsensitiveFS(t testing.TB)

SkipIfCaseInsensitiveFS skips t when the temp filesystem treats `CASEPROBE` and `caseprobe` as the same file — the colliding-name BDD cases (TC-WF-008, TC-STD-006) cannot be staged on case- insensitive volumes (default APFS on macOS, NTFS on Windows). The production logic still runs on case-sensitive filesystems in CI.

Types

This section is empty.

Jump to

Keyboard shortcuts

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