Documentation ¶
Overview ¶
Package ifacetestenv provides a test fixture for a face type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixture ¶
type Fixture struct { PayloadLen int // Data payload length DataFrames int // expected number of LpPackets per Data packet TxIterations int // number of TX iterations TxLossTolerance float64 // permitted TX packet loss (counter discrepancy) RxLossTolerance float64 // permitted RX packet loss NRxInterests int NRxData int NRxNacks int // contains filtered or unexported fields }
Fixture runs a test that sends and receives packets between a pair of connected faces.
The calling test case must create two faces that are connected together. The fixture sends L3 packets on one face, and expects to receive them on the other face.
func (*Fixture) CheckCounters ¶
func (fixture *Fixture) CheckCounters()
CheckCounters checks the counters are within acceptable range.
Click to show internal directories.
Click to hide internal directories.