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

Interface GitDirectory

internal/testutil/setup_manager.go:145–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145type GitDirectory interface {
146 CheckoutBranch(branch string, create bool) error
147 ReplaceData(data string) error
148 Commit(message string) error
149 Tag(tagName string) error
150}
151
152func updateGitDir(t *testing.T, gitDir GitDirectory, changes []Content) error {
153 for _, content := range changes {

Callers 30

updateGitDirFunction · 0.65
TestGitUtil_DefaultRefFunction · 0.65
TestCommand_Run_branchFunction · 0.65
TestCommand_Run_toTagRefFunction · 0.65
updateGitDirFunction · 0.65
TestCmd_executeFunction · 0.65
TestCmd_failUnCommittedFunction · 0.65
TestCommand_Run_branchFunction · 0.65

Implementers 2

TestGitRepointernal/testutil/testutil.go
TestWorkspaceinternal/testutil/testutil.go

Calls

no outgoing calls

Tested by

no test coverage detected