Documentation ¶
Overview ¶
Package ifacetestenv provides a test fixture for a face type.
The calling test case must initialize the EAL, and create two faces that are connected together. The fixture sends L3 packets on one face, and expects to receive them on the other face.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixture ¶
type Fixture struct { SkipLocatorCheck bool // don't CheckLocatorMarshal 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.
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.