tests

package
v0.0.0-...-0dfd57a Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldBeAction

func ShouldBeAction(actual interface{}, expected ...interface{}) string

Types

type TestRunner

type TestRunner struct {
	*testing.T

	WaitTimeout time.Duration
	IgnoreSubs  bool
	Id          string

	Received chan sarif.Message
	RecMutex sync.Mutex
	// contains filtered or unexported fields
}

func NewTestRunner

func NewTestRunner(t *testing.T) *TestRunner

func (*TestRunner) Expect

func (t *TestRunner) Expect() sarif.Message

func (*TestRunner) Publish

func (t *TestRunner) Publish(msg sarif.Message)

func (*TestRunner) Subscribe

func (t *TestRunner) Subscribe(action string)

func (*TestRunner) UseConn

func (t *TestRunner) UseConn(conn sfproto.Conn)

func (*TestRunner) Wait

func (t *TestRunner) Wait()

func (*TestRunner) When

func (t *TestRunner) When(msgs ...sarif.Message)

Jump to

Keyboard shortcuts

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