drive_client_test.go 430 B

123456789101112131415161718
  1. package geminicli
  2. import "testing"
  3. func TestDriveStorageInfo(t *testing.T) {
  4. // 测试 DriveStorageInfo 结构体
  5. info := &DriveStorageInfo{
  6. Limit: 100 * 1024 * 1024 * 1024, // 100GB
  7. Usage: 50 * 1024 * 1024 * 1024, // 50GB
  8. }
  9. if info.Limit != 100*1024*1024*1024 {
  10. t.Errorf("Expected limit 100GB, got %d", info.Limit)
  11. }
  12. if info.Usage != 50*1024*1024*1024 {
  13. t.Errorf("Expected usage 50GB, got %d", info.Usage)
  14. }
  15. }