Documentation ¶
Index ¶
- Variables
- func AllocBeacon(t *testing.T, ctrl *gomock.Controller, ases []IfInfo, inIfId common.IFIDType, ...) (beacon.Beacon, common.RawBytes)
- func CheckEmpty(t *testing.T, name string, results <-chan beacon.BeaconOrErr, err error)
- func CheckEmptyRevs(t *testing.T, results <-chan beacon.RevocationOrErr, err error)
- func CheckResult(t *testing.T, results <-chan beacon.BeaconOrErr, expected beacon.Beacon)
- func CheckResults(t *testing.T, results <-chan beacon.BeaconOrErr, ...)
- func CheckRevs(t *testing.T, results <-chan beacon.RevocationOrErr, ...)
- func InsertBeacon(t *testing.T, ctrl *gomock.Controller, db beacon.DBReadWrite, ases []IfInfo, ...) beacon.Beacon
- func InsertRevocation(t *testing.T, db beacon.DBReadWrite, sRev *path_mgmt.SignedRevInfo)
- func Test(t *testing.T, db Testable)
- type IfInfo
- type PeerEntry
- type Testable
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Info1 = []IfInfo{ { IA: ia311, Egress: 10, }, } Info2 = []IfInfo{ { IA: ia330, Egress: 4, }, { IA: ia331, Ingress: 1, Egress: 4, Peers: []PeerEntry{{IA: ia311, Ingress: 4}}, }, } Info3 = []IfInfo{ { IA: ia330, Egress: 5, }, { IA: ia331, Ingress: 2, Egress: 3, Peers: []PeerEntry{{IA: ia311, Ingress: 6}}, }, { IA: ia332, Ingress: 1, Egress: 7, }, } )
Functions ¶
func AllocBeacon ¶
func CheckEmpty ¶
CheckEmpty checks that no beacon is in the result channel.
func CheckEmptyRevs ¶
func CheckEmptyRevs(t *testing.T, results <-chan beacon.RevocationOrErr, err error)
func CheckResult ¶
CheckResult checks that the expected beacon is returned in results, and that it is the only returned beacon
func CheckResults ¶
func CheckRevs ¶
func CheckRevs(t *testing.T, results <-chan beacon.RevocationOrErr, expectedRevs []*path_mgmt.SignedRevInfo)
func InsertBeacon ¶
func InsertRevocation ¶
func InsertRevocation(t *testing.T, db beacon.DBReadWrite, sRev *path_mgmt.SignedRevInfo)
Types ¶
Click to show internal directories.
Click to hide internal directories.