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

Function temp_auth_dir

crates/opencode-provider/src/auth.rs:197–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 use super::*;
196
197 fn temp_auth_dir() -> PathBuf {
198 let dir = std::env::temp_dir().join(format!("opencode-auth-test-{}", uuid::Uuid::new_v4()));
199 std::fs::create_dir_all(&dir).expect("create temp auth dir");
200 dir
201 }
202
203 #[tokio::test]
204 async fn auth_manager_persists_and_reloads_file() {

Calls

no outgoing calls

Tested by

no test coverage detected