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

Method file_states

libatomic/tests/sandbox_service_test.rs:251–270  ·  view source on GitHub ↗
(&self, root: &Path, inodes: Vec<u64>)

Source from the content-addressed store, hash-verified

249
250impl RemoteSandboxLink for TestLink {
251 fn file_states(&self, root: &Path, inodes: Vec<u64>) -> Result<SandboxSlice, String> {
252 let route = Self::route(root)?;
253 let service = SandboxImpl {
254 state: Arc::clone(&route.state),
255 };
256 let response = route
257 .rt
258 .block_on(service.get_file_states(with_token(
259 GetFileStatesRequest {
260 repository: Some(route.repository.clone()),
261 inodes,
262 target: None,
263 expected_snapshot: None,
264 },
265 &route.token,
266 )))
267 .map_err(status_text)?
268 .into_inner();
269 wire::slice_from_proto(&response.slice.ok_or("no slice")?)
270 }
271
272 fn submit(
273 &self,

Callers

nothing calls this directly

Calls 5

with_tokenFunction · 0.85
slice_from_protoFunction · 0.85
get_file_statesMethod · 0.80
into_innerMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected