MCPcopy
hub / github.com/kptdev/kpt / Commit

Function Commit

internal/testutil/testutil.go:280–284  ·  view source on GitHub ↗

Commit performs a git commit

(t *testing.T, g *TestGitRepo, message string)

Source from the content-addressed store, hash-verified

278
279// Commit performs a git commit
280func Commit(t *testing.T, g *TestGitRepo, message string) {
281 if !assert.NoError(t, g.Commit(message)) {
282 t.FailNow()
283 }
284}
285
286func CommitTag(t *testing.T, g *TestGitRepo, tag string) {
287 Commit(t, g, tag)

Callers 2

TestKptGetSetFunction · 0.92
CommitTagFunction · 0.85

Calls 1

CommitMethod · 0.65

Tested by 1

TestKptGetSetFunction · 0.74