Skip to main content
Jeden Skill in Manus ausführen
mit einem Klick

table-driven-test

Sterne1
Forks0
Aktualisiert19. Februar 2026 um 13:10

Table-driven test pattern for writing clean, maintainable, and comprehensive tests. Separate test data (table entries) from test logic to eliminate copy-paste duplication. Use when: (1) writing Go tests with multiple input/output variations, (2) testing pure functions with various combinations, (3) refactoring duplicated test code, (4) adding edge cases and boundary conditions to existing tests, (5) implementing TDD test scenarios that share the same assertion structure. Covers Go-specific patterns (t.Run subtests, parallel execution, cmp.Diff) and language-agnostic principles applicable to any parameterized testing.

Installation

Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.

SKILL.md
readonly