MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / test_parse_www_authenticate

Function test_parse_www_authenticate

vmm/src/app/registry.rs:466–472  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

464
465 #[test]
466 fn test_parse_www_authenticate() {
467 let (realm, service) = parse_www_authenticate(
468 r#"Bearer realm="https://auth.docker.io/token",service="registry.docker.io""#,
469 );
470 assert_eq!(realm, "https://auth.docker.io/token");
471 assert_eq!(service, "registry.docker.io");
472 }
473}

Callers

nothing calls this directly

Calls 1

parse_www_authenticateFunction · 0.85

Tested by

no test coverage detected