Feat: cache in-memory store

This commit is contained in:
HFO4 committed 2019-12-05 17:01:14 +08:00
1 parent 5d50e7ed1e
commit 7375cc01f1
8 files changed
+134 -26

No files matched your search

+3 -2
View File
@@ -1,16 +1,17 @@
package model
import (
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
"github.com/stretchr/testify/assert"
"testing"
)
func TestMigration(t *testing.T) {
asserts := assert.New(t)
gin.SetMode(gin.TestMode)
DB, _ = gorm.Open("sqlite3", ":memory:")
asserts.NotPanics(func() {
migration()
})
DB = mockDB
}