什麼是 table-driven-test?
遵循 CockroachDB 約定在 Go 中建立乾淨、結構良好的表格驅動測試的指南。 來源:cockroachdb/cockroach。
遵循 CockroachDB 約定在 Go 中建立乾淨、結構良好的表格驅動測試的指南。
透過命令列快速安裝 table-driven-test AI 技能到你的開發環境
來源:cockroachdb/cockroach。
Table-driven tests define multiple test cases in a slice of structs, then iterate over them executing the same test logic. This makes it easy to add cases, improves readability, and reduces duplication.
Not the same as: Datadriven tests (different library with testdata files)
Order struct fields with input fields at the top and verification fields at the bottom. Prefix all verification fields with expected so readers can immediately distinguish inputs from outputs.
遵循 CockroachDB 約定在 Go 中建立乾淨、結構良好的表格驅動測試的指南。 來源:cockroachdb/cockroach。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/cockroachdb/cockroach --skill table-driven-test遵循 CockroachDB 約定在 Go 中建立乾淨、結構良好的表格驅動測試的指南。 來源:cockroachdb/cockroach。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/cockroachdb/cockroach --skill table-driven-test 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/cockroachdb/cockroach