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

Function TestBuildReferencesChain_NoRawMessage

internal/outbound/reply_test.go:144–151  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

142}
143
144func TestBuildReferencesChain_NoRawMessage(t *testing.T) {
145 // No raw message but we have the parent's Message-ID — chain is just [parent].
146 got := BuildReferencesChain(nil, "<parent@host>")
147 want := []string{"<parent@host>"}
148 if !reflect.DeepEqual(got, want) {
149 t.Errorf("got %v, want %v", got, want)
150 }
151}
152
153func TestBuildReferencesChain_ParentHasReferences(t *testing.T) {
154 // Spec case: parent has References → new chain = parent.References ++ [parent.MessageID].

Callers

nothing calls this directly

Calls 1

BuildReferencesChainFunction · 0.85

Tested by

no test coverage detected