MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / make_session

Function make_session

atomic-agent/src/record/tests.rs:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17use atomic_repository::status::RepositoryStatus;
18
19fn make_session() -> AgentSession {
20 let mut s = AgentSession::new("sess-test-123", "claude-code", "Claude Code");
21 s.set_model_info("anthropic", "claude-sonnet-4-20250514");
22 s.turn_count = 2; // Already completed 2 turns
23 s.add_files_touched(&["src/main.rs".to_string(), "src/lib.rs".to_string()]);
24 s
25}
26
27fn make_event() -> TurnEvent {
28 TurnEvent::new("sess-test-123", HookType::TurnEnd)

Calls 2

set_model_infoMethod · 0.80
add_files_touchedMethod · 0.80

Tested by

no test coverage detected