コード例 #1
0
	"github.com/duskhacker/cqrsnu/internal/github.com/onsi/gomega/ghttp"

	"time"

	"github.com/duskhacker/cqrsnu/internal/github.com/onsi/ginkgo/internal/codelocation"
	Failer "github.com/duskhacker/cqrsnu/internal/github.com/onsi/ginkgo/internal/failer"
	"github.com/duskhacker/cqrsnu/internal/github.com/onsi/ginkgo/types"
)

var _ = Describe("SynchronizedBeforeSuiteNode", func() {
	var failer *Failer.Failer
	var node SuiteNode
	var codeLocation types.CodeLocation
	var innerCodeLocation types.CodeLocation
	var outcome bool
	var server *ghttp.Server

	BeforeEach(func() {
		server = ghttp.NewServer()
		codeLocation = codelocation.New(0)
		innerCodeLocation = codelocation.New(0)
		failer = Failer.New()
	})

	AfterEach(func() {
		server.Close()
	})

	newNode := func(bodyA interface{}, bodyB interface{}) SuiteNode {
		return NewSynchronizedBeforeSuiteNode(bodyA, bodyB, codeLocation, time.Millisecond, failer)
	}
コード例 #2
0
	"github.com/duskhacker/cqrsnu/internal/github.com/onsi/gomega/ghttp"

	"time"

	"github.com/duskhacker/cqrsnu/internal/github.com/onsi/ginkgo/internal/codelocation"
	Failer "github.com/duskhacker/cqrsnu/internal/github.com/onsi/ginkgo/internal/failer"
)

var _ = Describe("SynchronizedAfterSuiteNode", func() {
	var failer *Failer.Failer
	var node SuiteNode
	var codeLocation types.CodeLocation
	var innerCodeLocation types.CodeLocation
	var outcome bool
	var server *ghttp.Server
	var things []string
	var lock *sync.Mutex

	BeforeEach(func() {
		things = []string{}
		server = ghttp.NewServer()
		codeLocation = codelocation.New(0)
		innerCodeLocation = codelocation.New(0)
		failer = Failer.New()
		lock = &sync.Mutex{}
	})

	AfterEach(func() {
		server.Close()
	})