serviceconf_test.go 231 B

123456789101112131415161718
  1. package service
  2. import (
  3. "testing"
  4. "git.i2edu.net/i2/go-zero/core/logx"
  5. )
  6. func TestServiceConf(t *testing.T) {
  7. c := ServiceConf{
  8. Name: "foo",
  9. Log: logx.LogConf{
  10. Mode: "console",
  11. },
  12. Mode: "dev",
  13. }
  14. c.MustSetUp()
  15. }