test

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertMockFullFilled

func AssertMockFullFilled(t *testing.T, mocks ...*mock.Mock) bool

AssertMockFullFilled check list of mock to ensure all defined expectations are meet

func ResetMock

func ResetMock(m *mock.Mock)

ResetMock reset assertion for provided mock

func ResetMocks

func ResetMocks(mocks ...*mock.Mock)

ResetMocks reset assertions for provided mock list

func ShouldBeFullFilled

func ShouldBeFullFilled(actual interface{}, _ ...interface{}) string

Assert provided DB/testify mock is full filled

func ShouldBeLikeError

func ShouldBeLikeError(actual interface{}, expected ...interface{}) string

Assert errors looks alike using goerrors.Is method

Types

This section is empty.

Jump to

Keyboard shortcuts

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