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

Function TestExtractForwardContext_QuotedPrintable

internal/outbound/forward_test.go:80–92  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

78}
79
80func TestExtractForwardContext_QuotedPrintable(t *testing.T) {
81 raw := []byte("From: alice@example.com\r\n" +
82 "Subject: Hi\r\n" +
83 "Content-Type: text/plain; charset=utf-8\r\n" +
84 "Content-Transfer-Encoding: quoted-printable\r\n" +
85 "\r\n" +
86 "caf=C3=A9")
87
88 ctx := ExtractForwardContext(raw)
89 if ctx.Text != "café" {
90 t.Errorf("Text = %q, want 'café'", ctx.Text)
91 }
92}
93
94func TestExtractForwardContext_MultipartMixedWrappingAlternative(t *testing.T) {
95 raw := []byte("From: alice@example.com\r\n" +

Callers

nothing calls this directly

Calls 1

ExtractForwardContextFunction · 0.85

Tested by

no test coverage detected