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

Function test_fork_title

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

Source from the content-addressed store, hash-verified

1299
1300 #[test]
1301 fn test_fork_title() {
1302 let session = Session::new("project-1", "/path/to/project");
1303 let title1 = session.get_forked_title();
1304 assert!(title1.ends_with("(fork #1)"));
1305
1306 let temp = Session {
1307 title: title1,
1308 ..session.clone()
1309 };
1310 let title2 = temp.get_forked_title();
1311 assert!(title2.ends_with("(fork #2)"));
1312 }
1313
1314 #[test]
1315 fn test_update_message() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
get_forked_titleMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected