Documentation ¶
Overview ¶
Package testing provides a testing object, and actors and rules for automatic testing.
Package testing provides a testing object T with a predefined context and functions for classical unit testing. In addition there is a testing object TF with additianal features for functional testing in the actor-based integrator environment.
Index ¶
- func CheckMessage(ctx *b.Context, spec m.Map, msg *b.Message)
- func Panic(ctx *b.Context, spec m.Map, msg *b.Message)
- type T
- type TF
- func (t *TF) AddCheck(f func())
- func (t *TF) AssertNoUncheckedMessages()
- func (t *TF) Check()
- func (t *TF) ExpectMsg(key, value string)
- func (st *TF) GetSession(sid string) b.Session
- func (st *TF) GetSessionMailbox(sid string) b.Mailbox
- func (t *TF) Run(name string, f func(*TF)) bool
- func (t *TF) TearDown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TF ¶ added in v0.1.8
type TF struct { *T WaitGroup *sync.WaitGroup Tester *b.Context // contains filtered or unexported fields }
func SetUpFWithForge ¶ added in v0.1.19
func (*TF) AssertNoUncheckedMessages ¶ added in v0.1.8
func (t *TF) AssertNoUncheckedMessages()
AssertNoUncheckedMessages is called during TearDown and logs an error if there are any expected messages (added via ExpectMsg()) left that have not been received by the test receiver / `check-message` handler.
func (*TF) Check ¶ added in v0.1.13
func (t *TF) Check()
Check is called during TearDown and calls all check functions added via AddCheck()
func (*TF) GetSessionMailbox ¶ added in v0.1.8
Click to show internal directories.
Click to hide internal directories.