diff --git a/crypt_test.go b/crypt_test.go index 071e874..cfd6d17 100644 --- a/crypt_test.go +++ b/crypt_test.go @@ -3,6 +3,8 @@ package crypt import ( "strings" "testing" + + "github.com/emilymaier/cmemory" ) func TestCryptSHA512(t *testing.T) { @@ -73,10 +75,12 @@ func TestCheckMemoryAllocation(t *testing.T) { niter = 512 ) + cmemory.StartInstrumentation() for i := 0; i < niter; i++ { h, _ := Crypt(pass, salt) _ = h } + cmemory.StopInstrumentation() // TODO: check all mem allocations are free'd }