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.
25 lines
569 B
25 lines
569 B
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) |
|
}) |
|
}
|
|
|