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

Method Payloads

internal/testutil/server.go:210–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208}
209
210func (w *WebhookReceiverResult) Payloads() []ReceivedPayload {
211 w.mu.Lock()
212 defer w.mu.Unlock()
213 result := make([]ReceivedPayload, len(w.payloads))
214 copy(result, w.payloads)
215 return result
216}
217
218func (w *WebhookReceiverResult) WaitForPayloads(t *testing.T, count int, timeout time.Duration) []ReceivedPayload {
219 t.Helper()

Callers 2

WaitForPayloadsMethod · 0.95

Calls 2

makeFunction · 0.85
copyFunction · 0.50

Tested by 1