Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ is_hex_40
Function
is_hex_40
crates/opencode-session/src/snapshot.rs:284–286 ·
view source on GitHub ↗
(s: &str)
Source
from the content-addressed store, hash-verified
282
use tempfile::tempdir;
283
284
fn is_hex_40(s: &str) -> bool {
285
s.len() == 40 && s.chars().all(|c| c.is_ascii_hexdigit())
286
}
287
288
#[test]
289
fn track_diff_restore_handles_uncommitted_worktree() {
Callers
nothing calls this directly
Calls
1
all
Method · 0.45
Tested by
no test coverage detected