test

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Derived from Apache 2.0 Eric Daniels https://github.com/viamrobotics/test/tree/f61b7c01c33ed4e8d01ae2f2263e0c34559384d3

Derived from Apache 2.0 Eric Daniels https://github.com/viamrobotics/test/tree/f61b7c01c33ed4e8d01ae2f2263e0c34559384d3

Derived from Apache 2.0 Eric Daniels https://github.com/viamrobotics/test/tree/f61b7c01c33ed4e8d01ae2f2263e0c34559384d3

Index

Constants

This section is empty.

Variables

View Source
var (
	ShouldContain                = assertions.ShouldContain
	ShouldNotContain             = assertions.ShouldNotContain
	ShouldContainKey             = assertions.ShouldContainKey
	ShouldNotContainKey          = assertions.ShouldNotContainKey
	ShouldBeIn                   = assertions.ShouldBeIn
	ShouldNotBeIn                = assertions.ShouldNotBeIn
	ShouldBeEmpty                = assertions.ShouldBeEmpty
	ShouldNotBeEmpty             = assertions.ShouldNotBeEmpty
	ShouldHaveLength             = assertions.ShouldHaveLength
	ShouldEqual                  = assertions.ShouldEqual
	ShouldNotEqual               = assertions.ShouldNotEqual
	ShouldAlmostEqual            = assertions.ShouldAlmostEqual
	ShouldNotAlmostEqual         = assertions.ShouldNotAlmostEqual
	ShouldEqualJSON              = assertions.ShouldEqualJSON
	ShouldPointTo                = assertions.ShouldPointTo
	ShouldNotPointTo             = assertions.ShouldNotPointTo
	ShouldBeNil                  = assertions.ShouldBeNil
	ShouldNotBeNil               = assertions.ShouldNotBeNil
	ShouldBeTrue                 = assertions.ShouldBeTrue
	ShouldBeFalse                = assertions.ShouldBeFalse
	ShouldBeZeroValue            = assertions.ShouldBeZeroValue
	ShouldNotBeZeroValue         = assertions.ShouldNotBeZeroValue
	ShouldPanic                  = assertions.ShouldPanic
	ShouldNotPanic               = assertions.ShouldNotPanic
	ShouldPanicWith              = assertions.ShouldPanicWith
	ShouldNotPanicWith           = assertions.ShouldNotPanicWith
	ShouldBeGreaterThan          = assertions.ShouldBeGreaterThan
	ShouldBeGreaterThanOrEqualTo = assertions.ShouldBeGreaterThanOrEqualTo
	ShouldBeLessThan             = assertions.ShouldBeLessThan
	ShouldBeLessThanOrEqualTo    = assertions.ShouldBeLessThanOrEqualTo
	ShouldBeBetween              = assertions.ShouldBeBetween
	ShouldNotBeBetween           = assertions.ShouldNotBeBetween
	ShouldBeBetweenOrEqual       = assertions.ShouldBeBetweenOrEqual
	ShouldNotBeBetweenOrEqual    = assertions.ShouldNotBeBetweenOrEqual
	ShouldStartWith              = assertions.ShouldStartWith
	ShouldNotStartWith           = assertions.ShouldNotStartWith
	ShouldEndWith                = assertions.ShouldEndWith
	ShouldNotEndWith             = assertions.ShouldNotEndWith
	ShouldContainSubstring       = assertions.ShouldContainSubstring
	ShouldNotContainSubstring    = assertions.ShouldNotContainSubstring
	ShouldBeBlank                = assertions.ShouldBeBlank
	ShouldNotBeBlank             = assertions.ShouldNotBeBlank
	ShouldEqualWithout           = assertions.ShouldEqualWithout
	ShouldEqualTrimSpace         = assertions.ShouldEqualTrimSpace
	ShouldHappenBefore           = assertions.ShouldHappenBefore
	ShouldHappenOnOrBefore       = assertions.ShouldHappenOnOrBefore
	ShouldHappenAfter            = assertions.ShouldHappenAfter
	ShouldHappenOnOrAfter        = assertions.ShouldHappenOnOrAfter
	ShouldHappenBetween          = assertions.ShouldHappenBetween
	ShouldHappenOnOrBetween      = assertions.ShouldHappenOnOrBetween
	ShouldNotHappenOnOrBetween   = assertions.ShouldNotHappenOnOrBetween
	ShouldHappenWithin           = assertions.ShouldHappenWithin
	ShouldNotHappenWithin        = assertions.ShouldNotHappenWithin
	ShouldBeChronological        = assertions.ShouldBeChronological
	ShouldNotBeChronological     = assertions.ShouldNotBeChronological
	ShouldHaveSameTypeAs         = assertions.ShouldHaveSameTypeAs
	ShouldNotHaveSameTypeAs      = assertions.ShouldNotHaveSameTypeAs
	ShouldImplement              = assertions.ShouldImplement
	ShouldNotImplement           = assertions.ShouldNotImplement
	ShouldBeError                = assertions.ShouldBeError
	ShouldWrap                   = assertions.ShouldWrap
)

Functions

func ShouldNotResemble

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

ShouldNotResemble receives exactly two parameters and does an inverse deep equal check (see reflect.DeepEqual).

func ShouldNotResembleProto

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

ShouldNotResembleProto receives exactly two parameters and does an inverse proto equal check.

func ShouldResemble

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

ShouldResemble receives exactly two parameters and does a deep equal check (see reflect.DeepEqual).

func ShouldResembleProto

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

ShouldResembleProto receives exactly two parameters and does a proto equal check.

func That

func That(tb testing.TB, actual interface{}, assert func(actual interface{}, expected ...interface{}) string, expected ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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