syncthing/vendor/github.com/syndtr/goleveldb/leveldb/testutil/ginkgo.go

22 lines
366 B
Go
Raw Normal View History

2014-11-24 10:57:31 +00:00
package testutil
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func RunSuite(t GinkgoTestingT, name string) {
RunDefer()
SynchronizedBeforeSuite(func() []byte {
RunDefer("setup")
return nil
}, func(data []byte) {})
SynchronizedAfterSuite(func() {
RunDefer("teardown")
}, func() {})
RegisterFailHandler(Fail)
RunSpecs(t, name)
}