(t *testing.T)
| 479 | } |
| 480 | |
| 481 | func TestMatchConsecutive_MultiLine(t *testing.T) { |
| 482 | lines := []indexedLine{{1, "a"}, {2, "b"}, {3, "c"}, {4, "d"}} |
| 483 | start, end, ok := matchConsecutive(lines, []string{"b", "c"}) |
| 484 | if !ok || start != 2 || end != 3 { |
| 485 | t.Errorf("multi-line: got (%d, %d, %v), want (2, 3, true)", start, end, ok) |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | func TestMatchConsecutive_NoMatch(t *testing.T) { |
| 490 | lines := []indexedLine{{1, "a"}, {2, "b"}} |
nothing calls this directly
no test coverage detected