github.com/tumi8/quic-go@v0.37.4-tum/logging/logging_suite_test.go (about) 1 package logging 2 3 import ( 4 "testing" 5 6 "github.com/golang/mock/gomock" 7 8 . "github.com/onsi/ginkgo/v2" 9 . "github.com/onsi/gomega" 10 ) 11 12 func TestLogging(t *testing.T) { 13 RegisterFailHandler(Fail) 14 RunSpecs(t, "Logging Suite") 15 } 16 17 var mockCtrl *gomock.Controller 18 19 var _ = BeforeEach(func() { 20 mockCtrl = gomock.NewController(GinkgoT()) 21 }) 22 23 var _ = AfterEach(func() { 24 mockCtrl.Finish() 25 })