From c85fbae7ebf282e4fd3c60f47d21bebc0016adaa Mon Sep 17 00:00:00 2001 From: beep Date: Wed, 2 Oct 2024 16:00:19 +0800 Subject: [PATCH] docs: update go table driven tests link in `CODING_GUIDELINES.md` (#22040) --- CODING_GUIDELINES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODING_GUIDELINES.md b/CODING_GUIDELINES.md index 60aeb1192746..59cd1e25e9b6 100644 --- a/CODING_GUIDELINES.md +++ b/CODING_GUIDELINES.md @@ -104,7 +104,7 @@ Make sure your code is well tested: We expect tests to use `require` or `assert` rather than `t.Skip` or `t.Fail`, unless there is a reason to do otherwise. When testing a function under a variety of different inputs, we prefer to use -[table driven tests](https://github.com/golang/go/wiki/TableDrivenTests). +[table driven tests](https://go.dev/wiki/TableDrivenTests). Table driven test error messages should follow the following format `, tc #, i #`. `` is an optional short description of what's failing, `tc` is the