yarpctest

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeTestResult

type FakeTestResult struct {
	Errors []string
	Status FakeTestStatus
	Panic  interface{} // non-nil if we panicked
}

FakeTestResult contains the result of using a fake TestingT.

func WithFakeTestingT

func WithFakeTestingT(f func(require.TestingT)) *FakeTestResult

WithFakeTestingT yields a TestingT that records its results and exposes them in FakeTestResult.

type FakeTestStatus

type FakeTestStatus int

FakeTestStatus states how a fake TestingT finished.

const (
	// Finished is the default. This indicates that it was run to completion
	// but may have recorded errors using Errorf.
	Finished FakeTestStatus = iota

	// Fatal indicates that the TestingT aborted early with a FailNow.
	Fatal

	// Panicked indicates that the TestingT aborted with a panic.
	Panicked
)

func (FakeTestStatus) String

func (f FakeTestStatus) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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