(t *testing.T, dir, name, content, msg string)
| 37 | } |
| 38 | |
| 39 | func 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. |
no test coverage detected