types

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 0 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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