TestDuckDBEngine_AggregateByRecipient verifies that recipient aggregation includes both to and cc recipients using list_concat.
(t *testing.T)
| 420 | // TestDuckDBEngine_AggregateByRecipient verifies that recipient aggregation |
| 421 | // includes both to and cc recipients using list_concat. |
| 422 | func TestDuckDBEngine_AggregateByRecipient(t *testing.T) { |
| 423 | engine := newParquetEngine(t) |
| 424 | ctx := context.Background() |
| 425 | results, err := engine.Aggregate(ctx, ViewRecipients, DefaultAggregateOptions()) |
| 426 | requirepkg.NoError(t, err, "AggregateByRecipient") |
| 427 | |
| 428 | // Expected recipients from test data (includes cc): |
| 429 | assertAggregateCounts(t, results, map[string]int64{ |
| 430 | "bob@company.org": 3, // to in msgs 1,2,3 |
| 431 | "carol@example.com": 1, // to in msg 1 |
| 432 | "alice@example.com": 2, // to in msgs 4,5 |
| 433 | "dan@other.net": 1, // cc in msg 2 |
| 434 | }) |
| 435 | } |
| 436 | |
| 437 | // TestDuckDBEngine_AggregateByRecipient_SearchFiltersOnKey verifies that |
| 438 | // text term search in Recipients view matches subjects, senders, and the |
nothing calls this directly
no test coverage detected