MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestFeedback_InvalidJSON

Function TestFeedback_InvalidJSON

internal/agent/api_test.go:195–204  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

193}
194
195func TestFeedback_InvalidJSON(t *testing.T) {
196 server, _, _ := setupAPI(t)
197
198 resp, _ := http.Post(server.URL+"/api/feedback", "application/json", bytes.NewBufferString(`not json`))
199 defer resp.Body.Close()
200
201 if resp.StatusCode != 400 {
202 t.Errorf("status = %d, want 400 for invalid JSON", resp.StatusCode)
203 }
204}
205
206func TestFeedback_MessageTooLong(t *testing.T) {
207 server, _, _ := setupAPI(t)

Callers

nothing calls this directly

Calls 2

setupAPIFunction · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected