alist/internal/op/driver_test.go

18 lines
346 B
Go
Raw Normal View History

package op_test
2022-06-14 11:44:25 +00:00
import (
"testing"
_ "github.com/alist-org/alist/v3/drivers"
"github.com/alist-org/alist/v3/internal/op"
2022-06-14 11:44:25 +00:00
)
func TestDriverItemsMap(t *testing.T) {
itemsMap := op.GetDriverInfoMap()
2022-06-14 11:44:25 +00:00
if len(itemsMap) != 0 {
2022-08-30 06:39:10 +00:00
t.Logf("driverInfoMap: %v", itemsMap)
2022-06-14 11:44:25 +00:00
} else {
2022-08-30 06:39:10 +00:00
t.Errorf("expected driverInfoMap not empty, but got empty")
2022-06-14 11:44:25 +00:00
}
}