fix(collector): 修好 #60 的編譯——測試用的 sortedKeys 與 convert_table.go 撞名

上一批把修法寫完了但沒編譯過:vault_footprint_test.go 自己定義了一支
sortedKeys,而 convert_table.go 早就有同名的(吃 map[string][]byte),
同一個 package 裡不能重名。改名成 sortedFootprintKeys,並順手把本分支
碰過的三個檔 gofmt 過。

驗收(實跑):
  bash collector/verify-60.sh  →  全部通過(五關)
  go test -count=1 ./...       → ok collector 9.6s / ok supervisor 12.2s

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-12 15:07:55 +08:00
parent 5a140faf1f
commit 5322103459
3 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ func TestTidy_RenamesLegacyCardsOnly(t *testing.T) {
// 使用者自己的東西(絕對不准動)
mine := map[string]string{
"journals/2026_08_10.md": "我的日記",
"pages/讀書筆記.md": "我的筆記",
"pages/讀書筆記.md": "我的筆記",
}
for rel, body := range mine {
p := filepath.Join(root, filepath.FromSlash(rel))