testutils

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeADirectoryFs added in v0.9.0

func BeADirectoryFs(fs vfs.VFS) types.GomegaMatcher

BeADirectoryFs succeeds if a file exists and is a directory. Actual must be a string representing the abs path to the file being checked.

func BeASymlink(fs vfs.VFS) types.GomegaMatcher

BeASymlink succeeds if a file exists and is a directory. Actual must be a string representing the abs path to the file being checked.

Types

type BeADirMatcher added in v0.9.0

type BeADirMatcher struct {
	Fs vfs.VFS
	// contains filtered or unexported fields
}

func (*BeADirMatcher) FailureMessage added in v0.9.0

func (matcher *BeADirMatcher) FailureMessage(actual interface{}) (message string)

func (*BeADirMatcher) Match added in v0.9.0

func (matcher *BeADirMatcher) Match(actual interface{}) (success bool, err error)

func (*BeADirMatcher) NegatedFailureMessage added in v0.9.0

func (matcher *BeADirMatcher) NegatedFailureMessage(actual interface{}) (message string)

type BeASymlinkMatcher added in v0.9.0

type BeASymlinkMatcher struct {
	Fs vfs.VFS
	// contains filtered or unexported fields
}

func (*BeASymlinkMatcher) FailureMessage added in v0.9.0

func (matcher *BeASymlinkMatcher) FailureMessage(actual interface{}) (message string)

func (*BeASymlinkMatcher) Match added in v0.9.0

func (matcher *BeASymlinkMatcher) Match(actual interface{}) (success bool, err error)

func (*BeASymlinkMatcher) NegatedFailureMessage added in v0.9.0

func (matcher *BeASymlinkMatcher) NegatedFailureMessage(actual interface{}) (message string)

type Teardown

type Teardown func()

func CombineInto

func CombineInto(tds ...Teardown) Teardown

CombineInto returns one Teardown function, which applies tds in order

func (Teardown) CombineInto

func (first Teardown) CombineInto(other ...Teardown) Teardown

CombineInto returns one Teardown function, which applies {first: Teardown} first and then {other []Teardown} in order remarks: note that {first: Teardown} does not get updated!

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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