Skip to content

x/tools/go/analysis/passes/inline: skip inlining in the primary tests of the annotated function #76190

@adonovan

Description

@adonovan

The inline analyzer inlines calls to functions annotated with a //go:fix inline directive. This is usually desirable in tests as well as production code; however, it is not wanted in the specific tests of the annotated function itself.

The analyzer should use a heuristic to recognize this case and skip it.

Metadata

Metadata

Assignees

Labels

AnalysisIssues related to static analysis (vet, x/tools/go/analysis)FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsFixThe path to resolution is known, but the work has not been done.RefactoringIssues related to refactoring toolsToolsThis label describes issues relating to any tools in the x/tools repository.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions