mirror of
https://github.com/awnumar/memguard.git
synced 2026-02-06 17:59:49 +00:00
14 lines
201 B
Go
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)
|
|
}
|
|
}
|