File: socketkey_test.go

package info (click to toggle)
golang-github-awnumar-memguard 0.22.5-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 572 kB
  • sloc: makefile: 3
file content (14 lines) | stat: -rw-r--r-- 201 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)
	}
}