tests

package
v0.0.0-...-eecab09 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAssertionFailed = errors.New("assertion failed")
View Source
var ErrFieldDoesNotExist = errors.New("field does not exist")
View Source
var ErrFieldDoesNotMatch = errors.New("field does not match")

Functions

func AssertActual

func AssertActual(a actualAssertion, actual interface{}, msgAndArgs ...interface{}) error

assertActual is a helper function to allow the step function to call assertion functions where you want to compare an actual value to a predined state like nil, empty or true/false.

func AssertExpectedAndActual

func AssertExpectedAndActual(a expectedAndActualAssertion, expected, actual interface{}, msgAndArgs ...interface{}) error

func CompareFields

func CompareFields(a, b interface{}, fields []string) error

Types

This section is empty.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
role
Package role is a generated GoMock package.
Package role is a generated GoMock package.
user
Package user is a generated GoMock package.
Package user is a generated GoMock package.

Jump to

Keyboard shortcuts

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