tart/Tests/TartTests
Dal Rupnik 100fc1e8bc fix: harden drag-and-drop against the edge-case report
Introduces DropHandler to own the drop pipeline and addresses every item
from the review:

- Folders / .app bundles / packages: DropProgressCopier.copyTree walks
  directories instead of failing with a generic 'Failed to copy'.
- File promises (Photos, Mail, browser image drags) are now accepted and
  materialized instead of silently no-opping.
- Multi-file toast race: per-file DropSession id; stale relocation
  results for a superseded file are ignored by update/finish/
  setFinalDestination.
- Partial files: copyTree removes its partial output on any error, and
  the handler drops the now-empty subdir, so the guest never sees a
  truncated file.
- Teardown race: in-flight guest relocations register with
  RelocationGate; 'tart run' drains it (<=6s) before deleting the drop
  zone / exiting.
- Path collisions: each file copies into its own dropRoot/<uuid>/ subdir.
- Reserved name: a user --dir named 'Dropped Files' is now rejected.
- Linux / no agent: relocation is skipped and the toast says 'Copied to
  the shared folder' instead of a misleading Finder destination.
- Agent-down timing: success toast holds on a fallback timer that
  outlives the 5s RPC deadline so the final destination is always shown.
- Concurrency: relocations run one-at-a-time; copy failures are
  coalesced into a single alert instead of a modal storm.
- Zero-byte/unknown size shows just the copied amount, not '0 bytes of ?'.
- Removed dead DropFolderBox + stale doc comment; fixed the
  http://-vs-https:// typo in toRemoteOrLocalURL.

Tests: DropProgressCopierTests (replace/cancel/error-cleanup/empty/
directory/size), GuestDropParseTests (stdout parser), and a reserved-name
case in DirectoryShareTests. Product and test target both compile.
2026-05-20 10:15:08 +02:00
..
Util Docker-related fixes (#1221) 2026-04-09 21:00:36 -07:00
DigestTests.swift Support pulling/pushing VMs to OCI-compatible registries (#32) 2022-05-03 14:30:26 -04:00
DirectoryShareTests.swift fix: harden drag-and-drop against the edge-case report 2026-05-20 10:15:08 +02:00
DiskImageFormatTests.swift ASIF is available only starting from macOS 26 (Tahoe) (#1096) 2025-09-14 09:40:06 -04:00
DiskutilTests.swift Refactor "diskutil create" and "diskutil info" into a separate class (#1172) 2026-01-22 13:00:27 +01:00
DockerConfigTests.swift Support wildcards in `credHelpers` (#592) 2023-08-28 11:37:49 -04:00
DropGeometryTests.swift feat: scaffold guest-side drop synthesis (host plumbing only) 2026-05-20 10:15:08 +02:00
DropProgressCopierTests.swift fix: harden drag-and-drop against the edge-case report 2026-05-20 10:15:08 +02:00
FileLockTests.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
GuestDropParseTests.swift fix: harden drag-and-drop against the edge-case report 2026-05-20 10:15:08 +02:00
LayerizerTests.swift Move brew completions to post_install (#1227) 2026-04-11 22:26:52 -04:00
LeaseTest.swift MAC address resolver: skip expired leases (#669) 2023-11-27 10:12:36 -05:00
LeasesTests.swift DHCP MAC-address resolver: handle duplicate leases (#740) 2024-02-23 16:49:06 +04:00
MACAddressResolverTests.swift MAC address resolver: skip expired leases (#669) 2023-11-27 10:12:36 -05:00
RegistryTests.swift Move brew completions to post_install (#1227) 2026-04-11 22:26:52 -04:00
RemoteNameTests.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
TokenResponseTests.swift Fixed Swift Warning (#787) 2024-04-11 19:53:10 +04:00
URLAbsolutizationTests.swift Reformat code idents and introduce the SwiftFormat linter (#339) 2022-11-29 15:56:13 +00:00
URLAccessDateTests.swift Introduce "tart prune" command (#164) 2022-08-12 16:43:04 +03:00
VMConfigTests.swift tart set: support optional "pt" and "px" units for "--display" argument (#1155) 2025-10-21 21:35:42 -04:00
WWWAuthenticateTests.swift Support pulling/pushing VMs to OCI-compatible registries (#32) 2022-05-03 14:30:26 -04:00