Documentation
¶
Overview ¶
Package acceptance provides infrascturctures for acceptance testing networks implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { *sim.TickingComponent AgentPorts []sim.Port MsgsToSend []sim.Msg // contains filtered or unexported fields }
Agent can send and receive request.
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
Test is a test case.
func (*Test) GenerateMsgs ¶
GenerateMsgs generates n message from a random source port to a random destination port.
func (*Test) MustHaveReceivedAllMsgs ¶
func (t *Test) MustHaveReceivedAllMsgs()
MustHaveReceivedAllMsgs asserts that all the messages sent are received.
func (*Test) RegisterAgent ¶
RegisterAgent adds an agent to the Test
func (*Test) ReportBandwidthAchieved ¶
func (t *Test) ReportBandwidthAchieved(now sim.VTimeInSec)
ReportBandwidthAchieved dumps the bandwidth observed by each agents.
Click to show internal directories.
Click to hide internal directories.