sindrtest

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test

func Test(t *testing.T, contents string, opts ...TestOption)

Types

type CollectWriter added in v0.0.9

type CollectWriter struct {
	T      *testing.T
	Writes []string
}

func (*CollectWriter) Write added in v0.0.9

func (c *CollectWriter) Write(p []byte) (n int, err error)

type TestOption

type TestOption func(o *testOptions)

func ShouldFail

func ShouldFail() TestOption

func WithArgs added in v0.0.7

func WithArgs(command ...string) TestOption

func WithEnv added in v0.0.9

func WithEnv(k, v string) TestOption

func WithLogger added in v0.0.9

func WithLogger(logger logger.Interface) TestOption

func WithPackageJson

func WithPackageJson(packageJson map[string]any) TestOption

func WithRawPackageJson

func WithRawPackageJson(packageJson string) TestOption

func WithWriter added in v0.0.9

func WithWriter(writer io.Writer) TestOption

Jump to

Keyboard shortcuts

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