...

Source file src/github.com/onsi/gomega/gleak/goroutines_test.go

Documentation: github.com/onsi/gomega/gleak

     1  package gleak
     2  
     3  import (
     4  	. "github.com/onsi/ginkgo/v2"
     5  	. "github.com/onsi/gomega"
     6  )
     7  
     8  var _ = Describe("goroutines", func() {
     9  
    10  	It("returns all goroutines", func() {
    11  		Expect(Goroutines()).To(ContainElement(
    12  			HaveField("TopFunction", SatisfyAny(
    13  				Equal("testing.(*T).Run"),
    14  				Equal("testing.RunTests")))))
    15  	})
    16  
    17  })
    18  

View as plain text