You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
586 B
27 lines
586 B
package dao |
|
|
|
import ( |
|
"testing" |
|
|
|
. "github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
func TestNewHuaweis(t *testing.T) { |
|
Convey("test new huawei", t, WithDao(func(d *Dao) { |
|
cs := d.newHuaweiClients(123, "") |
|
So(len(cs), ShouldEqual, 0) |
|
})) |
|
} |
|
func TestNewOppoClients(t *testing.T) { |
|
Convey("test new huawei", t, WithDao(func(d *Dao) { |
|
cs := d.newOppoClients(123, "") |
|
So(len(cs), ShouldEqual, 0) |
|
})) |
|
} |
|
|
|
func TestNewJpushClients(t *testing.T) { |
|
Convey("test new huawei", t, WithDao(func(d *Dao) { |
|
cs := d.newJpushClients("123", "") |
|
So(len(cs), ShouldBeGreaterThan, 0) |
|
})) |
|
}
|
|
|