testutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllPathsExist

type AllPathsExist struct{}

AllPathsExist is a PathChecker stub that reports all paths as existing.

func (AllPathsExist) Exists

type NoPathsExist

type NoPathsExist struct{}

NoPathsExist is a PathChecker stub that reports all paths as non-existent.

func (NoPathsExist) Exists

type PathSet

type PathSet struct {
	// contains filtered or unexported fields
}

PathSet wraps a set.Value[string] and implements PathChecker.

func CheckerFor

func CheckerFor(paths ...string) PathSet

CheckerFor returns a PathSet containing the given paths.

func (PathSet) Exists

func (ps PathSet) Exists(_ context.Context, p string) bool

Exists reports whether p is in the set.

Jump to

Keyboard shortcuts

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