internal

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package internal is for internal use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinError added in v2.1.17

func JoinError(errs ...error) error

Join returns an error that wraps the given errors. Any nil error values are discarded. Join returns nil if errs contains no non-nil values. The error formats as the concatenation of the strings obtained by calling the Error method of each element of errs, with a newline between each string.

Types

type Assert

type Assert struct {
	T        *testing.T
	CaseName string
}

Assert is a simple implementation of assertion, only for internal usage

func NewAssert

func NewAssert(t *testing.T, caseName string) *Assert

NewAssert return instance of Assert

func (*Assert) Equal

func (a *Assert) Equal(expected, actual any)

Equal check if expected is equal with actual

func (*Assert) EqualValues added in v2.1.19

func (a *Assert) EqualValues(expected, actual any)

EqualValues asserts that two objects are equal or convertable to the same types and equal. https://github.com/stretchr/testify/assert/assertions.go

func (*Assert) Greater

func (a *Assert) Greater(expected, actual any)

Greater check if expected is greate than actual

func (*Assert) GreaterOrEqual

func (a *Assert) GreaterOrEqual(expected, actual any)

GreaterOrEqual check if expected is greate than or equal with actual

func (*Assert) IsNil

func (a *Assert) IsNil(v any)

IsNil check if value is nil

func (*Assert) IsNotNil

func (a *Assert) IsNotNil(v any)

IsNotNil check if value is not nil

func (*Assert) Less

func (a *Assert) Less(expected, actual any)

Less check if expected is less than actual

func (*Assert) LessOrEqual

func (a *Assert) LessOrEqual(expected, actual any)

LessOrEqual check if expected is less than or equal with actual

func (*Assert) NotEqual

func (a *Assert) NotEqual(expected, actual any)

NotEqual check if expected is not equal with actual

func (*Assert) ShouldBeFalse added in v2.3.0

func (a *Assert) ShouldBeFalse(actual any)

ShouldBeFalse check if expected is false

func (*Assert) ShouldBeTrue added in v2.3.0

func (a *Assert) ShouldBeTrue(actual any)

ShouldBeTrue check if expected is true

Jump to

Keyboard shortcuts

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