Feat: after uploading hooks and checks

This commit is contained in:
HFO4
2019-11-18 19:09:56 +08:00
parent 0dddc12609
commit aa17aa8e6a
10 changed files with 105 additions and 16 deletions

20
models/folder_test.go Normal file
View File

@ -0,0 +1,20 @@
package model
import (
"fmt"
"github.com/stretchr/testify/assert"
"testing"
)
func TestGetFolderByPath(t *testing.T) {
asserts := assert.New(t)
//policyRows := sqlmock.NewRows([]string{"id", "name"}).
// AddRow(1, "默认上传策略")
//mock.ExpectQuery("^SELECT (.+)").WillReturnRows(policyRows)
folder,_ := GetFolderByPath("/测试/test",1)
fmt.Println(folder)
asserts.NoError(mock.ExpectationsWereMet())
asserts.NoError(mock.)
}