2
0
mirror of synced 2025-02-23 22:28:11 +00:00
torrent/peerid_test.go
Matt Joiner d5682e9cd0 Change a bunch of Stringer and status stuff
Cumulative interest time, download rate per connection, request low and high waters, peer extension bytes
2018-02-05 17:47:47 +11:00

17 lines
525 B
Go

package torrent
// func TestPeerIdString(t *testing.T) {
// for _, _case := range []struct {
// id string
// s string
// }{
// {"\x1cNJ}\x9c\xc7\xc4o\x94<\x9b\x8c\xc2!I\x1c\a\xec\x98n", "\"\x1cNJ}\x9c\xc7\xc4o\x94<\x9b\x8c\xc2!I\x1c\a\xec\x98n\""},
// {"-FD51W\xe4-LaZMk0N8ZLA7", "-FD51W\xe4-LaZMk0N8ZLA7"},
// } {
// var pi PeerID
// missinggo.CopyExact(&pi, _case.id)
// assert.EqualValues(t, _case.s, pi.String())
// assert.EqualValues(t, fmt.Sprintf("%q", _case.s), fmt.Sprintf("%q", pi))
// }
// }