Canonical guidance

Use when

Avoid

Preferred pattern

t.Fatalf("Parse(%q) = %q, want %q", in, got, want)

Anti-pattern

Explanation: This is tempting when the author already knows the test, but it is hostile to future readers and CI triage.

Why

Related pages

Sources