(t *testing.T)
| 95 | } |
| 96 | |
| 97 | func TestRunner_RunSplit(t *testing.T) { |
| 98 | dir := initRepo(t) |
| 99 | r := New(2) |
| 100 | |
| 101 | stdout, stderr, err := r.RunSplit(context.Background(), dir, "status", "--short") |
| 102 | if err != nil { |
| 103 | t.Fatalf("RunSplit error: %v", err) |
| 104 | } |
| 105 | _ = stderr |
| 106 | if strings.Contains(stdout, "??") { |
| 107 | t.Errorf("unexpected untracked files in clean repo: %q", stdout) |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | func TestRunner_Stream(t *testing.T) { |
| 112 | dir := initRepo(t) |