testing

package
v0.0.0-...-dc3d0b8 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaseT

type CaseT struct {
	*CollectT
	// contains filtered or unexported fields
}

func NewCaseT

func NewCaseT(ctx context.Context) *CaseT

func (*CaseT) Context

func (t *CaseT) Context() context.Context

func (*CaseT) Logger

func (t *CaseT) Logger() Logger

type CollectT

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

CollectT implements the TestingT interface and collects all errors.

func (*CollectT) Copy

func (c *CollectT) Copy(t assert.TestingT)

Copy copies the collected errors to the supplied t.

func (*CollectT) Errorf

func (c *CollectT) Errorf(format string, args ...interface{})

Errorf collects the error.

func (*CollectT) FailNow

func (c *CollectT) FailNow()

FailNow panics.

func (*CollectT) Reset

func (c *CollectT) Reset()

Reset clears the collected errors.

type Logger

type Logger interface {
	Debug(msg string, keyvals ...any)
	Info(msg string, keyvals ...any)
	Warn(msg string, keyvals ...any)
	Error(msg string, keyvals ...any)
}

type TestT

type TestT struct {
	*CollectT
	// contains filtered or unexported fields
}

func NewT

func NewT(ctx workflow.Context) *TestT

func (*TestT) Logger

func (t *TestT) Logger() Logger

func (*TestT) NextCaseExecutionID

func (t *TestT) NextCaseExecutionID() test.CaseExecutionID

func (*TestT) WorkflowContext

func (t *TestT) WorkflowContext() workflow.Context

type WorkflowT

type WorkflowT interface {
	WorkflowContext() workflow.Context
	NextCaseExecutionID() test.CaseExecutionID
}

Jump to

Keyboard shortcuts

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