| 1 | package main |
| 2 | |
| 3 | import ( |
| 4 | "reasonix/internal/provider" |
| 5 | "testing" |
| 6 | ) |
| 7 | |
| 8 | func TestReadCompletionHistoryRowSurvivesProjection(t *testing.T) { |
| 9 | r := &provider.ReadCompletion{ID: "run", Reads: []provider.CompletedRead{{Path: "fixture.txt", Verdict: "partial_read_sufficient", Covered: [][2]int{{0, 12}}}}} |
| 10 | rows, ok := historyLocalOnlyRows(provider.Message{LocalOnly: true, ReadCompletion: r}) |
| 11 | if !ok || len(rows) != 1 || rows[0].Code != "read_completion" || rows[0].ReadCompletion != r { |
| 12 | t.Fatalf("rows=%+v ok=%v", rows, ok) |
| 13 | } |
| 14 | } |
| 15 |