Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ test_validate_prefix
Function
test_validate_prefix
crates/opencode-core/src/id.rs:121–125 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
119
120
#[test]
121
fn test_validate_prefix() {
122
let id = create(Prefix::Session, false, None);
123
assert!(validate_prefix(&id, Prefix::Session));
124
assert!(!validate_prefix(&id, Prefix::Message));
125
}
126
}
Callers
nothing calls this directly
Calls
1
create
Function · 0.85
Tested by
no test coverage detected