golang/go

x/tools/gopls: renaming functions should rename corresponding test functions

Open

#74,378 建立於 2025年6月19日

在 GitHub 查看
 (17 留言) (5 反應) (1 負責人)Go (19,008 fork)batch import
FeatureRequestToolsgoplshelp wanted

倉庫指標

Star
 (133,883 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

https://github.com/user-attachments/assets/cf57b295-ab3c-4888-aca1-3dd309a521b7

Renaming a function also renames references to it. If there is a correspondingly named test function, it'd make sense to also rename it (TestHello to TestFoo when Hello renamed to Foo). Keeping the names in sync, and reducing work burden.

貢獻者指南