Documentation ¶ Index ¶ func CreateTestContext(t *testing.T, out, err *bytes.Buffer) context.Context func RunFileBasedCommandTests(t *testing.T, settings Setting, globalArgs ...string) type Setting func (bitmask Setting) Has(setting Setting) bool 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. Source Files ¶ View all Source files context.go filebased_command_tests.go Click to show internal directories. Click to hide internal directories.