Skip to content

Add rule to convert t.Error,t.Fatal to testify - #318

Open
thespags wants to merge 1 commit into
Antonboom:masterfrom
thespags:add-manual-fixer
Open

Add rule to convert t.Error,t.Fatal to testify#318
thespags wants to merge 1 commit into
Antonboom:masterfrom
thespags:add-manual-fixer

Conversation

@thespags

Copy link
Copy Markdown

Hi, I keep running into teammates using t.Error/t.Fatal, especially now with LLMs. I've set up skills and spoken about sticking with testify, yet some snippets sneak by.

Here's a new check to provide a warning and autofixer for common if {expr } { t.Error(...) } patterns

@thespags

Copy link
Copy Markdown
Author

Hi @Antonboom, a large set of changes, but hopefully straightforward common cases of converting from old t.Error/t.Fatal patterns in using testimony.

@Antonboom Antonboom added the llm-based LLM shit label Jun 22, 2026
@thespags

Copy link
Copy Markdown
Author

Hi, @Antonboom, thanks for taking a look. I did walk over manual_assert.go from what the LLM spat out to ensure we were using shared helpers, and improve code flow. Let me know what I can do to move the review along.

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

Labels

llm-based LLM shit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants