MCPcopy Create free account
hub / github.com/clawshell/clawshell / test_inject_auth

Function test_inject_auth

src/oauth/codex.rs:568–576  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

566
567 #[test]
568 fn test_inject_auth() {
569 let provider = CodexProvider::new(None, None, None, None);
570 let mut headers = HeaderMap::new();
571 provider.inject_auth(&mut headers, "test-token").unwrap();
572 assert_eq!(
573 headers.get("authorization").unwrap().to_str().unwrap(),
574 "Bearer test-token"
575 );
576 }
577
578 #[test]
579 fn test_prepare_request_body_translates_chat() {

Callers

nothing calls this directly

Calls 1

inject_authMethod · 0.45

Tested by

no test coverage detected