MCPcopy Create free account
hub / github.com/docker/secrets-engine / commit

Method commit

x/release/command_test.go:90–95  ·  view source on GitHub ↗
(t *testing.T, msg string)

Source from the content-addressed store, hash-verified

88}
89
90func (r *gitRepo) commit(t *testing.T, msg string) {
91 t.Helper()
92 require.NoError(t, os.WriteFile(filepath.Join(r.dir, "file.txt"), []byte(msg), 0o644))
93 r.run(t, "add", "file.txt")
94 r.run(t, "commit", "-m", msg)
95}
96
97// ctxAt returns a context after switching the process into the repo dir, so the
98// git helpers (which shell out in the cwd) operate on this repo.

Callers 1

Test_verifyReleaseRefFunction · 0.80

Calls 1

runMethod · 0.95

Tested by

no test coverage detected