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

Function EncodeMust

internal/httpapi/pagination_test.go:148–155  ·  view source on GitHub ↗

EncodeMust is a test helper that encodes a cursor or fails the test.

(t *testing.T, secret string, payload any)

Source from the content-addressed store, hash-verified

146
147// EncodeMust is a test helper that encodes a cursor or fails the test.
148func EncodeMust(t *testing.T, secret string, payload any) string {
149 t.Helper()
150 s, err := EncodeCursor(secret, payload)
151 if err != nil {
152 t.Fatalf("encode: %v", err)
153 }
154 return s
155}

Calls 1

EncodeCursorFunction · 0.85

Tested by

no test coverage detected