MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fixture_file_index

Function fixture_file_index

atomic-repository/examples/materialize_bench.rs:35–37  ·  view source on GitHub ↗

Zero-based fixture index of a generated `files/file_NNNN.txt` path.

(path: &str)

Source from the content-addressed store, hash-verified

33
34/// Zero-based fixture index of a generated `files/file_NNNN.txt` path.
35fn fixture_file_index(path: &str) -> Option<usize> {
36 path.strip_prefix("files/file_")?.get(..4)?.parse().ok()
37}
38
39#[derive(Clone, Debug, Serialize, Deserialize)]
40struct Config {

Callers 1

newMethod · 0.85

Calls 3

getMethod · 0.65
okMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected