Skip to content

go/types, types2: extract package paths (use package names) for internal tests automatically #59736

@griesemer

Description

@griesemer

The internal test support functions require a path and a source string. Typically the path is not very helpful (such as "p.go" or ".") and almost always unhelpful when a test fails.

Instead, if the path is simply the package name of the source, the path doesn't need to be explicitly provided and error reports are more useful. This will simplify writing tests and improve test output, leading to increased development velocity.

Tracking issue.

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions