Exemple #1
0
func checkInit() {

	if design.Design == nil {
		apidsl.InitDesign()
	}
	// check to see if this type is registered
	//set, ok := design.Design.ConstructSet["gorma"] // later!
	if gorma.GormaDesign == nil {
		//if !ok {
		// There is no registered gorma construct set
		gorma.Init()
	}
}
Exemple #2
0
package apidsl_test

import (
	"github.com/goadesign/goa/design/apidsl"
	. "github.com/onsi/ginkgo"
	. "github.com/onsi/gomega"

	"testing"
)

func TestDsl(t *testing.T) {
	RegisterFailHandler(Fail)
	RunSpecs(t, "Dsl Suite")
}

var _ = BeforeSuite(func() {
	apidsl.InitDesign()
})