(t *testing.T)
| 142 | } |
| 143 | |
| 144 | func 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 | |
| 153 | func TestBuildReferencesChain_ParentHasReferences(t *testing.T) { |
| 154 | // Spec case: parent has References → new chain = parent.References ++ [parent.MessageID]. |
nothing calls this directly
no test coverage detected