MCPcopy Create free account
hub / github.com/alibaba/open-code-review / TestRunner_RunSplit

Function TestRunner_RunSplit

internal/gitcmd/runner_test.go:97–109  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

95}
96
97func 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
111func TestRunner_Stream(t *testing.T) {
112 dir := initRepo(t)

Callers

nothing calls this directly

Calls 3

initRepoFunction · 0.85
RunSplitMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected