report_test.go 663 B

1234567891011121314151617181920212223242526272829
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_DelMiInvalid(t *testing.T) {
  8. Convey("Test_DelMiInvalid", t, WithDao(func(d *Dao) {
  9. err := d.DelMiInvalid(context.Background())
  10. So(err, ShouldBeNil)
  11. }))
  12. }
  13. func Test_DelMiUninstalled(t *testing.T) {
  14. Convey("Test_DelMiUninstalled", t, WithDao(func(d *Dao) {
  15. err := d.DelMiUninstalled(context.Background())
  16. So(err, ShouldNotBeNil)
  17. }))
  18. }
  19. func Test_delInvalidMiReports(t *testing.T) {
  20. Convey("Test_delInvalidMiReports", t, WithDao(func(d *Dao) {
  21. err := d.delInvalidMiReports(context.Background(), 1, []string{"test"})
  22. So(err, ShouldBeNil)
  23. }))
  24. }