MCPcopy Create free account
hub / github.com/celer-pkg/celer / runInit

Function runInit

cmds/cmd_init_test.go:114–121  ·  view source on GitHub ↗
(t *testing.T, args ...string)

Source from the content-addressed store, hash-verified

112}
113
114func runInit(t *testing.T, args ...string) (string, error) {
115 t.Helper()
116 dirs.RemoveAllForTest()
117 _ = os.RemoveAll(filepath.Join(dirs.WorkspaceDir, "conf"))
118
119 cmd := &initCmd{}
120 return runCommand(t, cmd.Command(configs.NewCeler()), args...)
121}
122
123func TestInitCmd_Command(t *testing.T) {
124 tests := []struct {

Callers 4

TestInitCmd_CommandFunction · 0.85
TestInitCmd_InitializeFunction · 0.85
TestInitCmd_EdgeCasesFunction · 0.85

Calls 4

CommandMethod · 0.95
RemoveAllForTestFunction · 0.92
NewCelerFunction · 0.92
runCommandFunction · 0.85

Tested by

no test coverage detected