MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / returning

Method returning

crates/openshell-server/src/auth/authenticator.rs:108–113  ·  view source on GitHub ↗
(outcome: Result<Option<Principal>, Status>)

Source from the content-addressed store, hash-verified

106
107 impl MockAuthenticator {
108 pub fn returning(outcome: Result<Option<Principal>, Status>) -> Self {
109 Self {
110 outcome,
111 calls: Mutex::new(Vec::new()),
112 }
113 }
114
115 pub fn call_count(&self) -> usize {
116 self.calls.lock().unwrap().len()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected