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.
 
 
 

23 lines
434 B

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)
}))
}