util/must: add linter for FatalOn
and PanicOn
#107426
Labels
A-testing
Testing tools and infrastructure
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-testeng
TestEng Team
FatalOn
andPanicOn
should not be used for general-purpose errors, onlymust
assertion failures. There is no functional reason why this is problematic, but it can lead to confusion about the distinction between assertions and error handling.We should add a linter for this, enforcing that the argument must be a
must
function call.Jira issue: CRDB-30036
The text was updated successfully, but these errors were encountered: