service_test.go 473 B

12345678910111213141516171819202122232425262728
  1. package relation
  2. import (
  3. "reflect"
  4. "testing"
  5. "go-common/app/interface/main/app-interface/conf"
  6. )
  7. func TestNew(t *testing.T) {
  8. type args struct {
  9. c *conf.Config
  10. }
  11. tests := []struct {
  12. name string
  13. args args
  14. wantS *Service
  15. }{
  16. // TODO: Add test cases.
  17. }
  18. for _, tt := range tests {
  19. t.Run(tt.name, func(t *testing.T) {
  20. if gotS := New(tt.args.c); !reflect.DeepEqual(gotS, tt.wantS) {
  21. t.Errorf("New() = %v, want %v", gotS, tt.wantS)
  22. }
  23. })
  24. }
  25. }