Files
imeai-aKode/codex-rs/user-verification/src/key_namespace_tests.rs

13 lines
480 B
Rust

//! Account-user identities share one service scope without exposing raw identifiers.
use super::*;
use pretty_assertions::assert_eq;
#[test]
fn namespaces_are_stable_and_separate_accounts() {
let first = UserVerificationKeyNamespace::new("account-user-one");
assert_eq!(first, UserVerificationKeyNamespace::new("account-user-one"));
assert_ne!(first, UserVerificationKeyNamespace::new("account-user-two"));
assert!(!first.label.contains("account-user-one"));
}