Help us shape the future of Go! Take the 2026 Go Developer Survey

matchers

package
v2.905.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OneOfMatcher

type OneOfMatcher struct {
	Elements []interface{}
}

func MatchOneOf

func MatchOneOf(elements ...interface{}) *OneOfMatcher

func (*OneOfMatcher) FailureMessage

func (m *OneOfMatcher) FailureMessage(actual interface{}) (message string)

func (*OneOfMatcher) Match

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

func (*OneOfMatcher) NegatedFailureMessage

func (m *OneOfMatcher) NegatedFailureMessage(actual interface{}) (message string)

Jump to

Keyboard shortcuts

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