]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Add a test for Piece size
authorMatt Joiner <anacrolix@gmail.com>
Tue, 29 Sep 2020 06:24:43 +0000 (16:24 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 29 Sep 2020 06:24:43 +0000 (16:24 +1000)
piece_test.go [new file with mode: 0644]

diff --git a/piece_test.go b/piece_test.go
new file mode 100644 (file)
index 0000000..1843f95
--- /dev/null
@@ -0,0 +1,10 @@
+package torrent
+
+import (
+       "testing"
+       "unsafe"
+)
+
+func TestPieceSize(t *testing.T) {
+       t.Logf("%v", unsafe.Sizeof(Piece{}))
+}