MCPcopy Create free account
hub / github.com/atripati/ark / TestVerifyCodeResponseWithCode

Function TestVerifyCodeResponseWithCode

pkg/runtime/verify_test.go:133–142  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

131}
132
133func 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
144func 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"

Callers

nothing calls this directly

Calls 2

verifyCodeResponseFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected