MCPcopy Create free account
hub / github.com/driangle/taskmd / setupEmptyGlobalRegistry

Function setupEmptyGlobalRegistry

apps/cli/internal/cli/projects_test.go:29–33  ·  view source on GitHub ↗

setupEmptyGlobalRegistry points TASKMD_HOME_CONFIG to a non-existent file.

(t *testing.T)

Source from the content-addressed store, hash-verified

27
28// setupEmptyGlobalRegistry points TASKMD_HOME_CONFIG to a non-existent file.
29func setupEmptyGlobalRegistry(t *testing.T) {
30 t.Helper()
31 configDir := t.TempDir()
32 t.Setenv("TASKMD_HOME_CONFIG", filepath.Join(configDir, "nonexistent.yaml"))
33}
34
35// createProjectWithTasks creates a project directory with .taskmd.yaml and task files.
36func createProjectWithTasks(t *testing.T, taskDir string, tasks map[string]string) string {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected