memguard/examples/socketkey/socketkey_test.go
2019-06-27 11:43:43 +01:00

14 lines
201 B
Go

package socketkey
import "testing"
func TestSocketKey(t *testing.T) {
SocketKey(4096)
}
func BenchmarkSocketKey32(b *testing.B) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
SocketKey(32)
}
}