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

Function createNextIDTestFiles

apps/cli/internal/cli/nextid_test.go:14–24  ·  view source on GitHub ↗
(t *testing.T, files map[string]string)

Source from the content-addressed store, hash-verified

12)
13
14func createNextIDTestFiles(t *testing.T, files map[string]string) string {
15 t.Helper()
16 tmpDir := t.TempDir()
17 for name, content := range files {
18 path := filepath.Join(tmpDir, name)
19 if err := os.WriteFile(path, []byte(content), 0644); err != nil {
20 t.Fatalf("failed to create test file %s: %v", name, err)
21 }
22 }
23 return tmpDir
24}
25
26func resetNextIDFlags() {
27 nextIDFormat = "plain"

Callers 4

TestNextID_NumericIDsFunction · 0.85
TestNextID_PrefixedIDsFunction · 0.85
TestNextID_JSONFormatFunction · 0.85
TestNextID_PlainFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected