]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Rename struct size test
authorMatt Joiner <anacrolix@gmail.com>
Tue, 29 Sep 2020 06:42:52 +0000 (16:42 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 29 Sep 2020 06:42:52 +0000 (16:42 +1000)
struct_test.go [moved from piece_test.go with 84% similarity]

similarity index 84%
rename from piece_test.go
rename to struct_test.go
index 1e030b5209f18bd74b0031d5bf62c5ce2024790b..6d71fcab14b4cc0b10af6277dff89bc7f0aa7be3 100644 (file)
@@ -5,7 +5,7 @@ import (
        "unsafe"
 )
 
-func TestPieceSize(t *testing.T) {
+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)))