MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_ctx

Function test_ctx

core/src/commands.rs:435–452  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

433 use super::*;
434
435 fn test_ctx() -> CommandContext {
436 CommandContext {
437 session_id: "test-session-123".into(),
438 workspace: "/tmp/test".into(),
439 model: "openai/kimi-k2.5".into(),
440 history_len: 10,
441 total_tokens: 5000,
442 total_cost: 0.0123,
443 tool_names: vec![
444 "read".into(),
445 "write".into(),
446 "bash".into(),
447 "mcp__github__create_issue".into(),
448 "mcp__github__list_repos".into(),
449 ],
450 mcp_servers: vec![("github".into(), 2)],
451 }
452 }
453
454 #[test]
455 fn test_is_command() {

Callers 12

test_dispatch_helpFunction · 0.85
test_dispatch_costFunction · 0.85
test_dispatch_model_showFunction · 0.85
test_dispatch_clearFunction · 0.85
test_dispatch_compactFunction · 0.85
test_dispatch_unknownFunction · 0.85
test_not_a_commandFunction · 0.85
test_custom_commandFunction · 0.85
test_dispatch_toolsFunction · 0.85
test_dispatch_mcpFunction · 0.85
test_dispatch_mcp_emptyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected