MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / test_add_messages

Function test_add_messages

crates/opencode-session/src/session.rs:1275–1283  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1273
1274 #[test]
1275 fn test_add_messages() {
1276 let mut session = Session::new("project-1", "/path/to/project");
1277
1278 session.add_user_message("Hello");
1279 assert_eq!(session.message_count(), 1);
1280
1281 session.add_assistant_message();
1282 assert_eq!(session.message_count(), 2);
1283 }
1284
1285 #[test]
1286 fn test_session_manager() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
add_user_messageMethod · 0.45
add_assistant_messageMethod · 0.45

Tested by

no test coverage detected