MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / is_scopes

Function is_scopes

crates/chat-cli/src/auth/scope.rs:16–18  ·  view source on GitHub ↗

Checks if the given scopes match the predefined scopes.

(scopes: &[S])

Source from the content-addressed store, hash-verified

14
15/// Checks if the given scopes match the predefined scopes.
16pub(crate) fn is_scopes<S: AsRef<str>>(scopes: &[S]) -> bool {
17 scopes_match(SCOPES, scopes)
18}
19
20#[cfg(test)]
21mod tests {

Callers 1

Calls 1

scopes_matchFunction · 0.85

Tested by

no test coverage detected