testcase

package
v0.18.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Case

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

func New

func New(t *testing.T, opts ...erltest.ReceiverOpt) *Case

func (*Case) Act

func (c *Case) Act(f func())

func (*Case) Arrange

func (c *Case) Arrange(f func(self erl.PID))

func (*Case) Assert

func (c *Case) Assert(f func())

func (*Case) Receiver

func (c *Case) Receiver() *erltest.TestReceiver

func (*Case) Spawn

func (c *Case) Spawn(r erl.Runnable) erl.PID

func (*Case) StartServer

func (c *Case) StartServer(startLink func(self erl.PID) (erl.PID, error)) erl.PID

Starts a server and links it to the testcase test pid. Will fail the test if startLink returns an error. Since it is linked to the test process, it should shutdown with it.

func (*Case) TestPID

func (c *Case) TestPID() erl.PID

Jump to

Keyboard shortcuts

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