From a5194b3be4768d42b27ef9e2d0d52479e0436758 Mon Sep 17 00:00:00 2001 From: Marc Pervaz Boocha Date: Tue, 25 Feb 2025 09:47:02 +0530 Subject: Removed testify and improved tests --- utils.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils.go') diff --git a/utils.go b/utils.go index c4ac9e5..fe3263c 100644 --- a/utils.go +++ b/utils.go @@ -7,6 +7,7 @@ import ( // zero returns the zero value for the specified type. func zero[T any]() T { var ret T + return ret } @@ -16,5 +17,6 @@ func hash(data []byte) uint64 { if _, err := hasher.Write(data); err != nil { panic(err) } + return hasher.Sum64() } -- cgit v1.2.3-70-g09d2