You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: three helpers write a file map that os.CopyFS already writes #2420
(morphic @4a7a384c9). The standard library already does this job: os.CopyFS(root, fstest.MapFS{...}) writes a map of files, creating the directories, since Go 1.23. A fix to one copy (permissions, an error path) reaches none of the others, and layout's name does not say it writes files, which hid it from a search for an existing helper.
Direction
A draft: replace each helper's body with os.CopyFS over an fstest.MapFS, or call os.CopyFS at the call sites directly, keeping each test's assertions unchanged.
Out of scope
internal/archtest's one-file writeDocFile and the writers in other packages that write a single file.
Priority: P4, rule 1 (housekeeping: a test refactor that changes no lowering, validation, IR or emit-contract behaviour). The command above → three copies (morphic @4a7a384c9).
Activity