Documentation
¶
Overview ¶
Package fibtestenv provides utilities for FIB unit tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DummyStrategy ¶
func DummyStrategy() *strategycode.Strategy
DummyStrategy returns an empty strategy.
Types ¶
type LookupThread ¶
type LookupThread struct { Socket eal.NumaSocket Replica unsafe.Pointer DynIndex int }
LookupThread is a trivial implementation of fib.LookupThread interface.
func (*LookupThread) GetFib ¶
func (th *LookupThread) GetFib() (replica unsafe.Pointer, dynIndex int)
GetFib returns saved arguments.
func (*LookupThread) GetFibSgGlobal ¶
func (th *LookupThread) GetFibSgGlobal() unsafe.Pointer
GetFibSgGlobal returns nil. This may not work with strategy with SgInit function.
func (*LookupThread) NumaSocket ¶
func (th *LookupThread) NumaSocket() eal.NumaSocket
NumaSocket returns th.Socket.
Click to show internal directories.
Click to hide internal directories.