alist/internal/operations/driver_test.go

18 lines
370 B
Go
Raw Normal View History

2022-06-14 19:44:25 +08:00
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) {
2022-08-30 14:39:10 +08:00
itemsMap := operations.GetDriverInfoMap()
2022-06-14 19:44:25 +08:00
if len(itemsMap) != 0 {
2022-08-30 14:39:10 +08:00
t.Logf("driverInfoMap: %v", itemsMap)
2022-06-14 19:44:25 +08:00
} else {
2022-08-30 14:39:10 +08:00
t.Errorf("expected driverInfoMap not empty, but got empty")
2022-06-14 19:44:25 +08:00
}
}