MCPcopy Index your code
hub / github.com/maruel/panicparse / createTree

Function createTree

stack/context_test.go:2505–2516  ·  view source on GitHub ↗
(t *testing.T, root string, tree map[string]string)

Source from the content-addressed store, hash-verified

2503}
2504
2505func createTree(t *testing.T, root string, tree map[string]string) {
2506 for path, content := range tree {
2507 p := filepath.Join(root, strings.Replace(path, "/", pathSeparator, -1))
2508 b := filepath.Dir(p)
2509 if err := os.MkdirAll(b, 0700); err != nil {
2510 t.Fatal(err)
2511 }
2512 if err := os.WriteFile(p, []byte(content), 0600); err != nil {
2513 t.Fatal(err)
2514 }
2515 }
2516}

Callers 2

TestGomoduleComplexFunction · 0.85
TestAugmentErrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…