utils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgAsMatcher added in v0.5.1

func ArgAsMatcher(arg any) gomock.Matcher

func MatchBytes

func MatchBytes(expected, data []byte) bool

func MatchJSON added in v0.5.0

func MatchJSON[T any](arg any) (T, bool)

func MatchMaps

func MatchMaps(expectedmap, actualMap map[string]any) bool

func MatchValues

func MatchValues(expected, actual reflect.Value) bool

func PrettyPrint added in v0.6.0

func PrettyPrint(arg any) string

func ToPointer added in v0.5.1

func ToPointer[T any](i T) *T

func TryGetValue

func TryGetValue[T any](value reflect.Value) (T, bool)

func UnwrapValue added in v0.5.1

func UnwrapValue(value reflect.Value) reflect.Value

Types

This section is empty.

Jump to

Keyboard shortcuts

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