golang/go

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

Open

#74 378 ouverte le 19 juin 2025

Voir sur GitHub
 (17 commentaires) (5 réactions) (1 assigné)Go (19 008 forks)batch import
FeatureRequestToolsgoplshelp wanted

Métriques du dépôt

Stars
 (133 883 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur