2022-08-31 21:01:15 +08:00
|
|
|
package op_test
|
2022-06-14 19:44:25 +08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
_ "github.com/alist-org/alist/v3/drivers"
|
2022-08-31 21:01:15 +08:00
|
|
|
"github.com/alist-org/alist/v3/internal/op"
|
2022-06-14 19:44:25 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestDriverItemsMap(t *testing.T) {
|
2022-08-31 21:01:15 +08:00
|
|
|
itemsMap := op.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
|
|
|
}
|
|
|
|
}
|