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

Method credential_token_at

crates/openshell-core/src/secrets.rs:376–384  ·  view source on GitHub ↗
(
        &'a self,
        text: &'a str,
        abs_start: usize,
    )

Source from the content-addressed store, hash-verified

374 }
375
376 fn credential_token_at<'a>(
377 &'a self,
378 text: &'a str,
379 abs_start: usize,
380 ) -> Option<(usize, &'a str)> {
381 self.longest_known_token_match(text, abs_start)
382 .or_else(|| canonical_token_at(text, abs_start))
383 .or_else(|| alias_token_at(text, abs_start))
384 }
385
386 fn longest_known_token_match<'a>(
387 &'a self,

Callers 1

Calls 3

canonical_token_atFunction · 0.85
alias_token_atFunction · 0.85

Tested by

no test coverage detected