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

Function TestValidateCodeResponseNoCode

pkg/runtime/quality_test.go:129–134  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

127}
128
129func TestValidateCodeResponseNoCode(t *testing.T) {
130 q := ValidateCodeResponse("This is just text, no code here.")
131 if q.HasCode {
132 t.Error("should not detect code in plain text")
133 }
134}
135
136func TestEnhanceSystemPromptCoding(t *testing.T) {
137 base := "You are an assistant."

Callers

nothing calls this directly

Calls 2

ValidateCodeResponseFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected