1 Star 5 Fork 0

Thoughtworks/tequila

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tequila_bc_test.go 859 Bytes
一键复制 编辑 原始数据 按行查看 历史
newlee 提交于 2017-12-22 09:38 +08:00 . support provider && clear code
package main_test
import (
. "github.com/newlee/tequila"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Tequila", func() {
Context("bc code compare", func() {
It("problem domain", func() {
dotFile := "examples/cargo-problem.dot"
dddModel := ParseProblemModel(dotFile)
codeDir := "examples/bc-code/html"
codeModel := ParseCodeProblemModel(codeDir, make([]string, 0))
Expect(dddModel.Compare(codeModel)).Should(BeNil())
})
It("solution domain", func() {
dotFile := "examples/cargo-bc.dot"
bcModel := ParseSolutionModel(dotFile)
Expect(len(bcModel.Layers)).Should(Equal(5))
codeDir := "examples/bc-code/html"
codeModel := ParseCodeSolutionModel(codeDir, []string{"domain", "repositories", "gateways", "services", "api"})
Expect(bcModel.Compare(codeModel)).Should(BeNil())
})
})
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/thoughtworks/tequila.git
git@gitee.com:thoughtworks/tequila.git
thoughtworks
tequila
tequila
master

搜索帮助