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

Method RemoveAll

internal/testutil/testutil.go:325–328  ·  view source on GitHub ↗

RemoveAll deletes the test git repo

()

Source from the content-addressed store, hash-verified

323
324// RemoveAll deletes the test git repo
325func (g *TestGitRepo) RemoveAll() error {
326 err := os.RemoveAll(g.RepoDirectory)
327 return err
328}
329
330func RemoveData(t *testing.T, g *TestGitRepo) {
331 // remove the old data

Callers 15

getShaFunction · 0.45
TestCmdExportFunction · 0.45
TestExistsFunction · 0.45
TestFixSettersV1Function · 0.45
TestCmd_stdinFunction · 0.45
TestCmd_gitFunction · 0.45
RemoveDataFunction · 0.45
replaceDataFunction · 0.45
RemoveAllMethod · 0.45
CleanMethod · 0.45

Calls

no outgoing calls

Tested by 15

TestCmdExportFunction · 0.36
TestExistsFunction · 0.36
TestFixSettersV1Function · 0.36
TestCmd_stdinFunction · 0.36
TestCmd_gitFunction · 0.36
TestCmd_pathFunction · 0.36
TestSearchCommandFunction · 0.36
TestSearchSubPackagesFunction · 0.36
TestDesc_ExecuteFunction · 0.36
TestGetFunction · 0.36
TestGet_patternFunction · 0.36