MCPcopy Index your code
hub / github.com/endbasic/endbasic / expect_access_token

Method expect_access_token

client/src/testutils.rs:349–355  ·  view source on GitHub ↗

Expects the mock service to have logged in with the access `token`.

(self, token: S)

Source from the content-addressed store, hash-verified

347impl<'a> ClientChecker<'a> {
348 /// Expects the mock service to have logged in with the access `token`.
349 pub(crate) fn expect_access_token<S: Into<String>>(self, token: S) -> Self {
350 Self {
351 checker: self.checker,
352 service: self.service,
353 exp_access_token: Some(AccessToken::new(token.into())),
354 }
355 }
356
357 /// See the wrapped `Checker::expect_err` function for details.
358 pub fn expect_compilation_err<S: Into<String>>(self, message: S) -> Self {

Calls

no outgoing calls

Tested by

no test coverage detected