You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kratos/pkg/testing/lich/composer_test.go

24 lines
607 B

package lich
import (
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestComposer(t *testing.T) {
convey.Convey("Composer testing....", t, func(convCtx convey.C) {
convCtx.Convey("When Setup everything goes positive", func(convCtx convey.C) {
convCtx.Convey("Then err should be nil.", func(convCtx convey.C) {
convCtx.So(Setup(), convey.ShouldBeNil)
})
})
convCtx.Convey("When UnSetup everything goes positive", func(convCtx convey.C) {
convCtx.Convey("Then err should be nil.", func(convCtx convey.C) {
convCtx.So(Teardown(), convey.ShouldBeNil)
})
})
})
}