From c2ba2aa417b057fc91b9b7c33dc03dbfe74003be Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 29 Sep 2020 16:24:43 +1000 Subject: [PATCH] Add a test for Piece size --- piece_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 piece_test.go diff --git a/piece_test.go b/piece_test.go new file mode 100644 index 00000000..1843f95d --- /dev/null +++ b/piece_test.go @@ -0,0 +1,10 @@ +package torrent + +import ( + "testing" + "unsafe" +) + +func TestPieceSize(t *testing.T) { + t.Logf("%v", unsafe.Sizeof(Piece{})) +}