github.com/TugasAkhir-QUIC/quic-go@v0.0.2-0.20240215011318-d20e25a9054c/logging/logging_suite_test.go (about)

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