瀏覽代碼

add more tests for service (#463)

Kevin Wan 4 年之前
父節點
當前提交
80e1c85b50
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. 18 0
      core/service/serviceconf_test.go

+ 18 - 0
core/service/serviceconf_test.go

@@ -0,0 +1,18 @@
+package service
+
+import (
+	"testing"
+
+	"github.com/tal-tech/go-zero/core/logx"
+)
+
+func TestServiceConf(t *testing.T) {
+	c := ServiceConf{
+		Name: "foo",
+		Log: logx.LogConf{
+			Mode: "console",
+		},
+		Mode: "dev",
+	}
+	c.MustSetUp()
+}