...

Source file src/github.com/onsi/gomega/gmeasure/gmeasure_suite_test.go

Documentation: github.com/onsi/gomega/gmeasure

     1  package gmeasure_test
     2  
     3  import (
     4  	"testing"
     5  
     6  	. "github.com/onsi/ginkgo/v2"
     7  	. "github.com/onsi/gomega"
     8  	"github.com/onsi/gomega/gleak"
     9  )
    10  
    11  func TestGmeasure(t *testing.T) {
    12  	RegisterFailHandler(Fail)
    13  	RunSpecs(t, "Gmeasure Suite")
    14  }
    15  
    16  var _ = BeforeEach(func() {
    17  	g := gleak.Goroutines()
    18  	DeferCleanup(func() {
    19  		Eventually(gleak.Goroutines).ShouldNot(gleak.HaveLeaked(g))
    20  	})
    21  })
    22  

View as plain text