...

Source file src/github.com/syndtr/goleveldb/leveldb/testutil/ginkgo.go

Documentation: github.com/syndtr/goleveldb/leveldb/testutil

     1  package testutil
     2  
     3  import (
     4  	. "github.com/onsi/ginkgo"
     5  	. "github.com/onsi/gomega"
     6  )
     7  
     8  func RunSuite(t GinkgoTestingT, name string) {
     9  	RunDefer()
    10  
    11  	SynchronizedBeforeSuite(func() []byte {
    12  		RunDefer("setup")
    13  		return nil
    14  	}, func(data []byte) {})
    15  	SynchronizedAfterSuite(func() {
    16  		RunDefer("teardown")
    17  	}, func() {})
    18  
    19  	RegisterFailHandler(Fail)
    20  	RunSpecs(t, name)
    21  }
    22  

View as plain text