maps

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainsMatcher

type ContainsMatcher[K comparable, V any] struct {
	Expected map[K]V
}

func (ContainsMatcher[K, V]) Match

func (m ContainsMatcher[K, V]) Match(got map[K]V, opts ...any) bool

func (ContainsMatcher[K, V]) OnTestFailure

func (m ContainsMatcher[K, V]) OnTestFailure(got map[K]V, opts ...any) []string

type EqualMatcher

type EqualMatcher[K comparable, V any] struct {
	Expected map[K]V
}

func (EqualMatcher[K, V]) Match

func (m EqualMatcher[K, V]) Match(got map[K]V, opts ...any) bool

func (EqualMatcher[K, V]) OnTestFailure

func (m EqualMatcher[K, V]) OnTestFailure(got map[K]V, opts ...any) []string

Jump to

Keyboard shortcuts

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