assertxerrors

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTestsPerMode

func RunTestsPerMode(t *testing.T, expected Expectations, constructor func(t *testing.T) error)

Types

type Expectations

type Expectations struct {
	ExpectedS        string
	ExpectedV        string
	Frames           StackTraceModeExpectation
	Stacks           StackTraceModeExpectation
	StackThenFrames  StackTraceModeExpectation
	StackThenNothing StackTraceModeExpectation
	Nothing          StackTraceModeExpectation
}

func (Expectations) Assert

func (e Expectations) Assert(t *testing.T, err error)

type StackTraceModeExpectation

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

func NewStackTraceModeExpectation

func NewStackTraceModeExpectation(plusv string, lines ...int) StackTraceModeExpectation

Jump to

Keyboard shortcuts

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