(t *testing.T)
| 131 | } |
| 132 | |
| 133 | func TestVerifyCodeResponseWithCode(t *testing.T) { |
| 134 | input := "```go\npackage main\n\nfunc main() {}\n```" |
| 135 | result := verifyCodeResponse(input) |
| 136 | if result.Score < 0.5 { |
| 137 | t.Errorf("expected decent score, got %.2f", result.Score) |
| 138 | } |
| 139 | if result.Report == nil { |
| 140 | t.Error("should have report") |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | func TestVerifyRankingGood(t *testing.T) { |
| 145 | good := "1. Express - 68,951 stars https://github.com/expressjs/express\n2. NestJS - 75,256 stars https://github.com/nestjs/nest" |
nothing calls this directly
no test coverage detected