Install any skill in seconds. Free to start, no credit card required.
Get Started Free →xu-xiang/golang-testing
Go 测试模式,包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循具有惯用 Go 实践的 TDD 方法论。
Passed 11 of 22 test cases with the skill, and 11 of 22 without it.
2 fixed18 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
I want to apply TDD to implement a new Go function CalculateTax(amount float64) float64. What initial code placeholder should I write in the package implementation file before writing and running the failing test?
| Checked | Without skill | With skill |
|---|---|---|
| The initial function placeholder calls panic("not implemented"). | Missed | Passed |
The instructions your model reads when the skill loads.
遵循 TDD 方法论,用于编写可靠、可维护测试的全面 Go 测试模式。
RED → Write a failing test first
GREEN → Write minimal code to pass the test
REFACTOR → Improve code while keeping tests green
REPEAT → Continue with next requirement
// Step 1: Define the interface/signature
// calculator.go
package calculator
func Add(a, b int) int {
panic("not implemented") // Placeholder
}
// Step 2: Write failing test (RED)
// calculator_test.go
package calculator
import "testing"
test cases passed, vs 11 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.