Skip to content

feat: add space before file name so IDEs link the file#1930

Open
RangelReale wants to merge 1 commit into
stretchr:masterfrom
RangelReale:error-links
Open

feat: add space before file name so IDEs link the file#1930
RangelReale wants to merge 1 commit into
stretchr:masterfrom
RangelReale:error-links

Conversation

@RangelReale

Copy link
Copy Markdown

Summary

The AssertExpectations method, on missing assertions, output the call stack inside "[" without a space before. This confuses IDEs, which can't parse the file name and set it as a filename link.

Changes

  • output CallerInfo with a space prefix and one file per line

Motivation

IDEs don't make the file name clickable.

Before:

Screenshot 2026-07-24 at 18 06 12

After:

Screenshot 2026-07-24 at 18 05 48

Related issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant