grokkit/internal/testgen/testgen_test.go
Greg Gauthier fe25d7fa37
All checks were successful
CI / Test (pull_request) Successful in 1m20s
CI / Lint (pull_request) Successful in 50s
CI / Build (pull_request) Successful in 40s
feat(mcp): implement recipe and prompt listing with handlers
- Add ListRecipes and ListAvailablePrompts functions
- Update MCP server handlers for local/global recipes and prompts
- Add unit tests for analyze, docs, mcp, prompts, recipe, and testgen packages
2026-04-06 15:44:30 +01:00

32 lines
549 B
Go

package testgen
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetTestPrompt(t *testing.T) {
tests := []struct {
lang string
expected string
}{
{"Go", "expert Go test writer"},
{"Python", "pytest expert"},
{"C", "Check framework"},
{"C++", "Google Test"},
{"Unknown", ""},
}
for _, tt := range tests {
t.Run(tt.lang, func(t *testing.T) {
prompt := GetTestPrompt(tt.lang)
if tt.expected == "" {
assert.Empty(t, prompt)
} else {
assert.Contains(t, prompt, tt.expected)
}
})
}
}