tart/Tests/TartTests
Dal Rupnik b954c0d56c feat: live byte progress and best-effort cancel for file-promise drops
Covers two of the file-promise trade-offs (A + B from the review):

A. Progress: poll bytes streamed into the (shared) per-item subdir while
   the opaque receivePromisedFiles runs, feeding the toast's live size
   readout instead of a dead spinner. Best-effort — providers that write
   a temp file and atomically rename only become visible at the end.

B. Cancellation: DropCancellationToken gains an onCancel hook; the
   promise path cancels its operation queue and unblocks the wait loop
   on ⊗ instead of sitting on the 30 s timeout. Cooperative providers
   abort; either way we stop waiting and clean up at once.

C (true determinate % via NSItemProvider.loadFileRepresentation) is
intentionally NOT implemented: macOS AppKit drags don't vend
NSItemProvider, and NSFilePromiseReceiver exposes no Progress/cancel
surface, so a real percentage isn't reachable without an undocumented
hack. The size poller is the honest ceiling.

Also: capture the dispatch group locally in RelocationGate.drain to drop
a Sendable-capture warning. Adds DropCancellationTokenTests.
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
DropCancellationTokenTests.swift feat: live byte progress and best-effort cancel for file-promise drops 2026-05-20 10:15:08 +02: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