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

Method open

libatomic/tests/sandbox_service_test.rs:160–171  ·  view source on GitHub ↗

Mint a token for `view` (as the local admin).

(&self, view: &str, capabilities: &[&str])

Source from the content-addressed store, hash-verified

158
159 /// Mint a token for `view` (as the local admin).
160 fn open(&self, view: &str, capabilities: &[&str]) -> SandboxOpened {
161 self.rt
162 .block_on(self.service().open_sandbox(Request::new(self.open_request(
163 view,
164 capabilities,
165 600,
166 ))))
167 .unwrap()
168 .into_inner()
169 .opened
170 .unwrap()
171 }
172
173 fn tree(&self, view: &str) -> BTreeMap<String, String> {
174 self.with_repo(|repo| {

Calls 5

serviceMethod · 0.80
open_requestMethod · 0.80
unwrapMethod · 0.45
into_innerMethod · 0.45
open_sandboxMethod · 0.45

Tested by

no test coverage detected