Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ test_create_id
Function
test_create_id
crates/opencode-core/src/id.rs:107–111 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
105
106
#[test]
107
fn test_create_id() {
108
let id = create(Prefix::Session, false, None);
109
assert!(id.starts_with(
"ses_"
));
110
assert_eq!(id.len(), 30);
111
}
112
113
#[test]
114
fn test_timestamp_extraction() {
Callers
nothing calls this directly
Calls
1
create
Function · 0.85
Tested by
no test coverage detected