assert

package
v0.0.0-...-bf7cbd6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolSubject

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

func Bool

func Bool(t *testing.T, label string, value bool) BoolSubject

func (BoolSubject) IsFalse

func (bs BoolSubject) IsFalse()

func (BoolSubject) IsTrue

func (bs BoolSubject) IsTrue()

type ErrorSubject

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

func Error

func Error(t *testing.T, value error) ErrorSubject

func (ErrorSubject) IsNil

func (es ErrorSubject) IsNil()

func (ErrorSubject) IsNotNil

func (es ErrorSubject) IsNotNil()

func (ErrorSubject) IsUnexpected

func (es ErrorSubject) IsUnexpected()

type Harness

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

func New

func New(t *testing.T) Harness

func (Harness) Bool

func (h Harness) Bool(label string, value bool) BoolSubject

func (Harness) Error

func (h Harness) Error(value error) ErrorSubject

func (Harness) Int

func (h Harness) Int(label string, value int) IntSubject

func (Harness) String

func (h Harness) String(label, value string) StringSubject

type IntSubject

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

func Int

func Int(t *testing.T, label string, value int) IntSubject

func (IntSubject) Equals

func (is IntSubject) Equals(value int)

type StringSubject

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

func String

func String(t *testing.T, label, value string) StringSubject

func (StringSubject) Contains

func (ss StringSubject) Contains(value string)

func (StringSubject) Equals

func (ss StringSubject) Equals(value string)

func (StringSubject) NotBlank

func (ss StringSubject) NotBlank()

func (StringSubject) NotEquals

func (ss StringSubject) NotEquals(value string)

Jump to

Keyboard shortcuts

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