Documentation ¶
Index ¶
- Variables
- func AllocBeacon(t *testing.T, ases []IfInfo, inIfId uint16, infoTS uint32) (beacon.Beacon, []byte)
- func CheckResult(t *testing.T, results []beacon.Beacon, expected beacon.Beacon)
- func CheckResults(t *testing.T, results []beacon.Beacon, expectedBeacons []beacon.Beacon)
- func InsertBeacon(t *testing.T, db beacon.DB, ases []IfInfo, inIfId uint16, infoTS uint32, ...) beacon.Beacon
- func Test(t *testing.T, db Testable)
- type IfInfo
- type PeerEntry
- type Testable
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IA311 = addr.MustIAFrom(1, 0xff0000000311) IA330 = addr.MustIAFrom(1, 0xff0000000330) IA331 = addr.MustIAFrom(1, 0xff0000000331) IA332 = addr.MustIAFrom(1, 0xff0000000332) IA333 = addr.MustIAFrom(1, 0xff0000000333) IA334 = addr.MustIAFrom(2, 0xff0000000334) Info1 = []IfInfo{ { IA: IA311, Next: IA330, Egress: 10, }, } Info2 = []IfInfo{ { IA: IA330, Next: IA331, Egress: 4, }, { IA: IA331, Next: IA332, Ingress: 1, Egress: 4, Peers: []PeerEntry{{IA: IA311, Ingress: 4}}, }, } Info3 = []IfInfo{ { IA: IA330, Next: IA331, Egress: 5, }, { IA: IA331, Next: IA332, Ingress: 2, Egress: 3, Peers: []PeerEntry{{IA: IA311, Ingress: 6}}, }, { IA: IA332, Next: IA333, Ingress: 1, Egress: 7, }, } Info4 = []IfInfo{ { IA: IA334, Next: IA330, Egress: 10, }, } )
Functions ¶
func AllocBeacon ¶
func CheckResult ¶
CheckResult checks that the expected beacon is returned in results, and that it is the only returned beacon
func CheckResults ¶
CheckResults checks whether results and expectedBeacons are equivalent.
func InsertBeacon ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.