mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-17 22:58:07 +00:00
Feat: after uploading hooks and checks
This commit is contained in:
1 parent
0dddc12609
commit
aa17aa8e6a
10 files changed
+105
-16
No files matched your search
@@ -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.)
|
||||
}
|
||||
Reference in new issue
Block a user