client_test.go 586 B

123456789101112131415161718192021222324252627
  1. package dao
  2. import (
  3. "testing"
  4. . "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestNewHuaweis(t *testing.T) {
  7. Convey("test new huawei", t, WithDao(func(d *Dao) {
  8. cs := d.newHuaweiClients(123, "")
  9. So(len(cs), ShouldEqual, 0)
  10. }))
  11. }
  12. func TestNewOppoClients(t *testing.T) {
  13. Convey("test new huawei", t, WithDao(func(d *Dao) {
  14. cs := d.newOppoClients(123, "")
  15. So(len(cs), ShouldEqual, 0)
  16. }))
  17. }
  18. func TestNewJpushClients(t *testing.T) {
  19. Convey("test new huawei", t, WithDao(func(d *Dao) {
  20. cs := d.newJpushClients("123", "")
  21. So(len(cs), ShouldBeGreaterThan, 0)
  22. }))
  23. }