test_helpers

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestContext added in v0.9.4

func CreateTestContext(t *testing.T, out, err *bytes.Buffer) context.Context

func RunFileBasedCommandTests

func RunFileBasedCommandTests(t *testing.T, settings Setting, globalArgs ...string)

Types

type Setting

type Setting int

Setting is a bitmask for controlling Upsert behavior

const (
	ReadOnly Setting = 1 << iota
)

func (Setting) Has

func (bitmask Setting) Has(setting Setting) bool

Has checks if [check] exists in the [settings] bitmask or not.

Jump to

Keyboard shortcuts

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