File: alloc_test.go

package info (click to toggle)
golang-github-sasha-s-go-deadlock 0.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 132 kB
  • sloc: sh: 9; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 189 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
package deadlock

import (
	"testing"
)

func BenchmarkCheckDeadlock(b *testing.B) {
	ch := make(chan struct{})
	close(ch)
	for i := 0; i < b.N; i++ {
		checkDeadlock(nil, nil, 0, ch)
	}
}