types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeMatcher

type BeMatcher interface {
	GomegaMatcher
	GomockMatcher
}

BeMatcher is the main matcher interface for the `be` library. It consolidates all types of matchers supported by `be`, which currently includes GomegaMatcher and GomockMatcher.

type GomegaMatcher

type GomegaMatcher interface {
	Match(actual interface{}) (success bool, err error)
	FailureMessage(actual interface{}) (message string)
	NegatedFailureMessage(actual interface{}) (message string)
}

GomegaMatcher represents a matcher compatible with the Gomega library. We intentionally refrain from using the GomegaMatcher interface from the Gomega library. Although the Gomega library is still utilized as a dependency in other parts of `be`, and is likely to remain as a dependency for the time being. Interface source: https://github.com/onsi/gomega/blob/master/types/types.go#L37

type GomockMatcher

type GomockMatcher interface {
	Matches(x any) bool
	String() string
}

GomockMatcher represents a matcher compatible with the Gomock library. We intentionally refrain using the Matcher interface from the Gomock library to prevent direct dependency on the Gomock library. Interface source: https://github.com/uber-go/mock/blob/main/gomock/matchers.go

Jump to

Keyboard shortcuts

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