Jelajahi Sumber

add more tests for service (#463)

Kevin Wan 4 tahun lalu
induk
melakukan
80e1c85b50
1 mengubah file dengan 18 tambahan dan 0 penghapusan
  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()
+}