MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / writeCaseFiles

Function writeCaseFiles

benchmark/agentbench/materialize.go:81–92  ·  view source on GitHub ↗
(dir string, files map[string]string)

Source from the content-addressed store, hash-verified

79}
80
81func writeCaseFiles(dir string, files map[string]string) error {
82 for name, content := range files {
83 path := filepath.Join(dir, name)
84 if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
85 return err
86 }
87 if err := os.WriteFile(path, []byte(content), 0o644); err != nil {
88 return err
89 }
90 }
91 return nil
92}
93
94func copyTree(src, dst string) error {
95 info, err := os.Stat(src)

Callers 1

materializeBuiltinCaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected