testutil

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinArgs

func JoinArgs(parts []string) string

func NewDeps

func NewDeps(t *testing.T, runner *Runner) (*cache.MetadataCache, *naming.Resolver, *doctype.Registry)

Types

type Runner

type Runner struct {
	Out      []byte
	LastArgs []string
	Calls    [][]string
	RunFn    func(context.Context, ...string) ([]byte, error)
}

func (*Runner) Path

func (m *Runner) Path() string

func (*Runner) Run

func (m *Runner) Run(ctx context.Context, args ...string) ([]byte, error)

Jump to

Keyboard shortcuts

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