testcommon

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorStringComparer

func ErrorStringComparer() cmp.Option

func IgnoreContexts

func IgnoreContexts() cmp.Option

func IgnoreUnexported

func IgnoreUnexported() cmp.Option

func InfDecComparer

func InfDecComparer() cmp.Option

func MatchByCmpDiff

func MatchByCmpDiff(t *testing.T, i any, opts ...cmp.Option) any

func MatchIgnoreContext

func MatchIgnoreContext(t *testing.T, i any, opts ...cmp.Option) any

MatchIgnoreContext is a mock matcher that ignores contexts inside the given object.

interfaces generated by swagger bury the ctx into the params, which makes it impossible to mock with this matcher you can use the mocks quite adequately.

func StrFmtDateComparer

func StrFmtDateComparer() cmp.Option

Types

This section is empty.

Jump to

Keyboard shortcuts

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