mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-28 10:08:11 -07:00
Add man to exported functions/fields
This commit is contained in:
committed by
Lawrence, Rendall
parent
0a5ac35c4d
commit
360ac9d08d
@@ -47,11 +47,11 @@ func TestClientID(t *testing.T) {
|
||||
t.Run(tt.peerID, func(t *testing.T) {
|
||||
var clientID ClientID
|
||||
copy(clientID[:], tt.clientID)
|
||||
peerId, err := bittorrent.NewPeerID([]byte(tt.peerID))
|
||||
peerID, err := bittorrent.NewPeerID([]byte(tt.peerID))
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
parsedID := NewClientID(peerId)
|
||||
parsedID := NewClientID(peerID)
|
||||
if parsedID != clientID {
|
||||
t.Error("Incorrectly parsed peer ID", tt.peerID, "as", parsedID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user