File: goroutines_test.go

package info (click to toggle)
golang-gomega 1.36.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,984 kB
  • sloc: xml: 277; javascript: 59; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 321 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package gleak

import (
	. "github.com/onsi/ginkgo/v2"
	. "github.com/onsi/gomega"
)

var _ = Describe("goroutines", func() {

	It("returns all goroutines", func() {
		Expect(Goroutines()).To(ContainElement(
			HaveField("TopFunction", SatisfyAny(
				Equal("testing.(*T).Run"),
				Equal("testing.RunTests")))))
	})

})