nex_squid/crates/squid-core/src
mula.liu f65021de03 Measure long paths, and clean up after a failing fixture
`windows_allocation` built its UTF-16 argument with `to_string_lossy`, so a
path that an `OsString` can hold but a `String` cannot arrived at
`GetCompressedFileSizeW` with replacement characters in it, and any path past
the 260-character legacy limit was answered with `ERROR_PATH_NOT_FOUND` — the
deep `node_modules` trees this tool exists to measure cross that line
routinely. `wide_path` keeps every UTF-16 unit and adds the verbatim prefix
only where it is honest (absolute, no `.` or `..`), because the prefix also
switches off normalisation.

The scratch-directory fixture now removes itself even when an assertion
panics halfway through. That is not housekeeping: a file extended with
`set_len` is charged as if written in full, and one surviving fixture sat on
the test machine's disk at 11 GB — in `AppData\Local\Temp`, where squid then
correctly offered it back as junk.
2026-10-15 18:53:31 +08:00
..
bytes.rs squid 0.1.0: macOS 磁盘清理(CLI + TUI) 2026-10-13 17:00:50 +08:00
error.rs Windows-friendly elevation hints 2026-10-15 15:26:12 +08:00
fs.rs Measure long paths, and clean up after a failing fixture 2026-10-15 18:53:31 +08:00
ledger.rs squid 0.1.0: macOS 磁盘清理(CLI + TUI) 2026-10-13 17:00:50 +08:00
lib.rs Windows-friendly elevation hints 2026-10-15 15:26:12 +08:00
model.rs squid 0.1.0: macOS 磁盘清理(CLI + TUI) 2026-10-13 17:00:50 +08:00
paths.rs Measure long paths, and clean up after a failing fixture 2026-10-15 18:53:31 +08:00
progress.rs squid 0.1.0: macOS 磁盘清理(CLI + TUI) 2026-10-13 17:00:50 +08:00
safety.rs Measure what NTFS actually allocated, and unbreak the /Applications test 2026-10-15 16:43:41 +08:00
settings.rs squid 0.1.0: macOS 磁盘清理(CLI + TUI) 2026-10-13 17:00:50 +08:00