MCPcopy Create free account
hub / github.com/1jehuang/jcode / create_test_context

Function create_test_context

crates/jcode-app-core/src/tool/selfdev/tests.rs:42–52  ·  view source on GitHub ↗
(session_id: &str, working_dir: Option<std::path::PathBuf>)

Source from the content-addressed store, hash-verified

40}
41
42fn create_test_context(session_id: &str, working_dir: Option<std::path::PathBuf>) -> ToolContext {
43 ToolContext {
44 session_id: session_id.to_string(),
45 message_id: "test-message".to_string(),
46 tool_call_id: "test-tool-call".to_string(),
47 working_dir,
48 stdin_request_tx: None,
49 graceful_shutdown_signal: None,
50 execution_mode: crate::tool::ToolExecutionMode::Direct,
51 }
52}
53
54fn create_repo_fixture() -> tempfile::TempDir {
55 let temp = tempfile::TempDir::new().expect("temp repo");

Calls

no outgoing calls

Tested by

no test coverage detected