MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / write_config

Function write_config

crates/opencode-config/tests/config_loaded.rs:9–12  ·  view source on GitHub ↗
(dir: &PathBuf, content: &str, name: &str)

Source from the content-addressed store, hash-verified

7use tempfile::TempDir;
8
9fn write_config(dir: &PathBuf, content: &str, name: &str) {
10 let path = dir.join(name);
11 fs::write(path, content).unwrap();
12}
13
14#[test]
15fn loads_json_config_file() {

Calls

no outgoing calls

Tested by

no test coverage detected