go-common/app/job/openplatform/article/dao/game_test.go

24 lines
434 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dao
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func Test_GameSync(t *testing.T) {
Convey("work", t, WithDao(func(d *Dao) {
err := d.GameSync(context.Background(), "add", 1)
So(err, ShouldBeNil)
}))
}
func Test_NewGameCache(t *testing.T) {
Convey("work", t, WithDao(func(d *Dao) {
res, err := d.GameList(context.TODO())
So(err, ShouldBeNil)
So(res, ShouldNotBeEmpty)
}))
}