test: add driver and account test

This commit is contained in:
Noah Hsu
2022-06-14 19:44:25 +08:00
parent 0d4542a3f1
commit b8e4a2e7c0
7 changed files with 81 additions and 2 deletions

View File

@ -0,0 +1,17 @@
package operations_test
import (
"testing"
_ "github.com/alist-org/alist/v3/drivers"
"github.com/alist-org/alist/v3/internal/operations"
)
func TestDriverItemsMap(t *testing.T) {
itemsMap := operations.GetDriverItemsMap()
if len(itemsMap) != 0 {
t.Logf("driverItemsMap: %v", itemsMap)
} else {
t.Errorf("expected driverItemsMap not empty, but got empty")
}
}