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,26 @@
package dao
import (
"context"
"testing"
)
func TestAddRecentDM(t *testing.T) {
count, err := testDao.AddRecentDM(context.TODO(), 123, dm)
if err != nil {
t.Fatal(err)
}
t.Logf("count:%d", count)
}
func TestZRemRecentDM(t *testing.T) {
if err := testDao.ZRemRecentDM(context.TODO(), 123, 719150142); err != nil {
t.Fatal(err)
}
}
func TestTrimRecentDM(t *testing.T) {
if err := testDao.TrimRecentDM(context.TODO(), 123, 1); err != nil {
t.Fatal(err)
}
}