alist/internal/operations/driver_test.go

18 lines
370 B
Go
Raw Normal View History

2022-06-14 11:44:25 +00: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 06:39:10 +00:00
itemsMap := operations.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
}
}