Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package dao
import (
"context"
"testing"
"time"
. "github.com/smartystreets/goconvey/convey"
)
func TestDaoCountBlocked(t *testing.T) {
Convey("should return err be nil and num>=0", t, func() {
num, err := d.CountBlocked(context.TODO(), 27515415, time.Now())
So(err, ShouldBeNil)
So(num, ShouldBeGreaterThanOrEqualTo, 0)
})
}
func TestDaoBlockedInfoID(t *testing.T) {
Convey("should return err be nil and num>=0", t, func() {
id, err := d.BlockedInfoID(context.TODO(), 27515415)
So(err, ShouldBeNil)
So(id, ShouldBeGreaterThanOrEqualTo, 0)
})
}