assert

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assertion

type Assertion struct {
	// contains filtered or unexported fields
}

Assertion is an intermediate type, not to be instantiated directly.

func (*Assertion) Equals

func (this *Assertion) Equals(expected interface{})

Equals asserts that the value provided is equal to the expected value.

func (*Assertion) IsFalse

func (this *Assertion) IsFalse()

IsFalse asserts that the value provided to That is false.

func (*Assertion) IsNil

func (this *Assertion) IsNil()

IsNil asserts that the value provided to That is nil.

func (*Assertion) IsTrue

func (this *Assertion) IsTrue()

IsTrue asserts that the value provided to That is true.

type That

type That struct {
	// contains filtered or unexported fields
}

That is an intermediate type, not to be instantiated directly

func With

func With(t testingT) *That

With allows assertions as in: assert.With(t).That(actual).Equals(expected)

func (*That) That

func (this *That) That(actual interface{}) *Assertion

That is an intermediate method call, as in: assert.With(t).That(actual).Equals(expected)

Jump to

Keyboard shortcuts

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