dao_test.go 424 B

12345678910111213141516171819202122232425262728
  1. package tab
  2. import (
  3. . "github.com/smartystreets/goconvey/convey"
  4. "go-common/app/interface/main/app-feed/conf"
  5. "testing"
  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. wantD *Dao
  15. }{
  16. // TODO: Add test cases.
  17. }
  18. for _, tt := range tests {
  19. Convey(tt.name, t, func() {
  20. gotD := New(tt.args.c)
  21. So(gotD, ShouldEqual, tt.wantD)
  22. })
  23. }
  24. }