dao_test.go 551 B

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