Was ist table-driven-test?
Richtlinien zum Erstellen sauberer, gut strukturierter tabellengesteuerter Tests in Go gemäß den CockroachDB-Konventionen. Quelle: cockroachdb/cockroach.
Richtlinien zum Erstellen sauberer, gut strukturierter tabellengesteuerter Tests in Go gemäß den CockroachDB-Konventionen.
Installieren Sie den KI-Skill table-driven-test schnell in Ihrer Entwicklungsumgebung über die Kommandozeile
Quelle: 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.
Richtlinien zum Erstellen sauberer, gut strukturierter tabellengesteuerter Tests in Go gemäß den CockroachDB-Konventionen. Quelle: cockroachdb/cockroach.
Stabile Felder und Befehle für KI/Such-Zitate.
npx skills add https://github.com/cockroachdb/cockroach --skill table-driven-testRichtlinien zum Erstellen sauberer, gut strukturierter tabellengesteuerter Tests in Go gemäß den CockroachDB-Konventionen. Quelle: cockroachdb/cockroach.
Öffnen Sie Ihr Terminal oder Kommandozeilen-Tool (Terminal, iTerm, Windows Terminal, etc.) Kopieren Sie diesen Befehl und führen Sie ihn aus: npx skills add https://github.com/cockroachdb/cockroach --skill table-driven-test Nach der Installation wird der Skill automatisch in Ihrer KI-Programmierumgebung konfiguriert und ist bereit zur Verwendung in Claude Code, Cursor oder OpenClaw
https://github.com/cockroachdb/cockroach