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

Function TestFeedback_EmptyMessage

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

Source from the content-addressed store, hash-verified

128}
129
130func TestFeedback_EmptyMessage(t *testing.T) {
131 server, _, _ := setupAPI(t)
132
133 payload := `{"email":"user@example.com","category":"bug","message":""}`
134 resp, _ := http.Post(server.URL+"/api/feedback", "application/json", bytes.NewBufferString(payload))
135 defer resp.Body.Close()
136
137 if resp.StatusCode != 400 {
138 t.Errorf("status = %d, want 400", resp.StatusCode)
139 }
140}
141
142func TestFeedback_WhitespaceOnlyMessage(t *testing.T) {
143 server, _, _ := setupAPI(t)

Callers

nothing calls this directly

Calls 2

setupAPIFunction · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected