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

Function commitIn

internal/agent/sealed_input_test.go:39–46  ·  view source on GitHub ↗
(t *testing.T, dir, name, content, msg string)

Source from the content-addressed store, hash-verified

37}
38
39func commitIn(t *testing.T, dir, name, content, msg string) {
40 t.Helper()
41 if err := os.WriteFile(filepath.Join(dir, name), []byte(content), 0o644); err != nil {
42 t.Fatalf("write %s: %v", name, err)
43 }
44 gitIn(t, dir, "add", ".")
45 gitIn(t, dir, "commit", "-m", msg)
46}
47
48// TestSealedInputPinsRunToAdmittedCommits is the guarantee that lets the resume
49// decision live entirely before the run exists.

Callers 2

sealRepoFunction · 0.85

Calls 1

gitInFunction · 0.70

Tested by

no test coverage detected