Documentation ¶
Overview ¶
Package test contains storage benchmarks. Not used in production.
Package test contains storage tests. Not used in production.
Package test contains generated data for storage tests. Not used in production.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PeerEqualityFunc = func(p1, p2 bittorrent.Peer) bool {
return p1.Port() == p2.Port() &&
p1.Addr().Compare(p1.Addr()) == 0 &&
p1.ID == p2.ID
}
PeerEqualityFunc is the boolean function to use to check two Peers for equality. Depending on the implementation of the PeerStorage, this can be changed to use (Peer).EqualEndpoint instead.
Functions ¶
func RunBenchmarks ¶
RunBenchmarks starts series of benchmarks
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.