Release / update-version (push) Has been cancelled
Release / build-frontend (push) Has been cancelled
Release / release (push) Has been cancelled
Release / sync-version-file (push) Has been cancelled
CI / shell (push) Canceled after 0s
CI / test (push) Canceled after 0s
CI / frontend (push) Canceled after 0s
CI / golangci-lint (push) Canceled after 0s
Security Scan / backend-security (push) Canceled after 0s
Security Scan / frontend-security (push) Canceled after 0s
19 lines
430 B
Go
19 lines
430 B
Go
package geminicli
|
|
|
|
import "testing"
|
|
|
|
func TestDriveStorageInfo(t *testing.T) {
|
|
// 测试 DriveStorageInfo 结构体
|
|
info := &DriveStorageInfo{
|
|
Limit: 100 * 1024 * 1024 * 1024, // 100GB
|
|
Usage: 50 * 1024 * 1024 * 1024, // 50GB
|
|
}
|
|
|
|
if info.Limit != 100*1024*1024*1024 {
|
|
t.Errorf("Expected limit 100GB, got %d", info.Limit)
|
|
}
|
|
if info.Usage != 50*1024*1024*1024 {
|
|
t.Errorf("Expected usage 50GB, got %d", info.Usage)
|
|
}
|
|
}
|