matchers

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeAnExistingFileFs

func BeAnExistingFileFs(fs interface{}) OmegaMatcher

func ContainExport

func ContainExport(key, value string, args ...interface{}) types.GomegaMatcher

ContainExport succeeds if actual is a string or stringer that contains an export declaration the passed-in key and value. Optional arguments can be provided to construct the substring via fmt.Sprintf().

func HaveSectionHeader

func HaveSectionHeader(title string, args ...interface{}) types.GomegaMatcher

HaveSectionHeader succeeds if actual is a string or stringer that contains a section header with the passed-in key title Optional arguments can be provided to construct the substring via fmt.Sprintf().

Types

type ContainExportMatcher

type ContainExportMatcher struct {
	Key   string
	Value string
	Args  []interface{}
}

func (ContainExportMatcher) FailureMessage

func (m ContainExportMatcher) FailureMessage(actual interface{}) (message string)

func (ContainExportMatcher) Match

func (m ContainExportMatcher) Match(actual interface{}) (success bool, err error)

func (ContainExportMatcher) NegatedFailureMessage

func (m ContainExportMatcher) NegatedFailureMessage(actual interface{}) (message string)

type FsBeAnExistingFileMatcher

type FsBeAnExistingFileMatcher struct {
	FS interface{}
}

func (*FsBeAnExistingFileMatcher) FailureMessage

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

func (*FsBeAnExistingFileMatcher) Match

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

func (*FsBeAnExistingFileMatcher) NegatedFailureMessage

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

Jump to

Keyboard shortcuts

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