FedP2P/struct_test.go

13 lines
245 B
Go

package torrent
import (
"testing"
"unsafe"
)
func TestStructSizes(t *testing.T) {
t.Log("[]*File", unsafe.Sizeof([]*File(nil)))
t.Log("Piece", unsafe.Sizeof(Piece{}))
t.Log("map[*peer]struct{}", unsafe.Sizeof(map[*Peer]struct{}(nil)))
}