OSDN Git Service

new repo
[bytom/vapor.git] / vendor / github.com / syndtr / goleveldb / leveldb / testutil / ginkgo.go
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 }