Feat: add List method to Handler interface / implement local.List

This commit is contained in:
HFO4
2020-04-24 11:08:07 +08:00
parent 6006ff4d22
commit f7311f906b
11 changed files with 97 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package local
import (
"context"
"fmt"
model "github.com/HFO4/cloudreve/models"
"github.com/HFO4/cloudreve/pkg/auth"
"github.com/HFO4/cloudreve/pkg/conf"
@@ -230,3 +231,12 @@ func TestHandler_Token(t *testing.T) {
_, err := handler.Token(ctx, 10, "123")
asserts.NoError(err)
}
func TestDriver_List(t *testing.T) {
//asserts := assert.New(t)
handler := Driver{}
ctx := context.Background()
res, err := handler.List(ctx, "KKV")
fmt.Println(res, err)
}