(t *testing.T, args []string, vals ...string)
| 505 | } |
| 506 | |
| 507 | func assertContainsInOrder(t *testing.T, args []string, vals ...string) { |
| 508 | t.Helper() |
| 509 | idx := 0 |
| 510 | for _, a := range args { |
| 511 | if idx < len(vals) && a == vals[idx] { |
| 512 | idx++ |
| 513 | } |
| 514 | } |
| 515 | if idx != len(vals) { |
| 516 | t.Errorf("expected args to contain %v in order, got %v (matched up to index %d)", vals, args, idx) |
| 517 | } |
| 518 | } |
| 519 | |
| 520 | func TestGitGrep_WorkspaceMode_UntrackedFile(t *testing.T) { |
| 521 | dir := setupTestRepo(t) |
no outgoing calls
no test coverage detected