(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func TestCleanResponseCoding(t *testing.T) { |
| 63 | config := DefaultQualityConfig() |
| 64 | input := "Sure! Here is the code:\n```go\nfunc main() {}\n```\n\nLet me know if you have any questions!" |
| 65 | result := CleanResponse(input, "coding", config) |
| 66 | if strings.Contains(result, "Sure!") { |
| 67 | t.Error("should strip 'Sure!' prefix") |
| 68 | } |
| 69 | if strings.Contains(result, "Let me know") { |
| 70 | t.Error("should strip 'Let me know' suffix") |
| 71 | } |
| 72 | if !strings.Contains(result, "func main()") { |
| 73 | t.Error("should preserve code content") |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func TestCleanResponseSummary(t *testing.T) { |
| 78 | config := DefaultQualityConfig() |
nothing calls this directly
no test coverage detected