service_test.go 844 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package region
  2. import (
  3. "reflect"
  4. "testing"
  5. "go-common/app/interface/main/app-feed/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. }
  26. func TestService_md5(t *testing.T) {
  27. type args struct {
  28. v interface{}
  29. }
  30. tests := []struct {
  31. name string
  32. s *Service
  33. args args
  34. want string
  35. }{
  36. // TODO: Add test cases.
  37. }
  38. for _, tt := range tests {
  39. t.Run(tt.name, func(t *testing.T) {
  40. if got := tt.s.md5(tt.args.v); got != tt.want {
  41. t.Errorf("Service.md5() = %v, want %v", got, tt.want)
  42. }
  43. })
  44. }
  45. }