MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / sample_params

Function sample_params

nodedb/tests/security.rs:31–44  ·  view source on GitHub ↗
(user_id: u64, username: &str)

Source from the content-addressed store, hash-verified

29}
30
31fn sample_params(user_id: u64, username: &str) -> SessionParams {
32 SessionParams {
33 user_id,
34 username: username.to_string(),
35 db_user: username.to_string(),
36 peer_addr: "127.0.0.1:5555".to_string(),
37 protocol: "native".to_string(),
38 auth_method: "password".to_string(),
39 tenant_id: 1,
40 credential_version: 0,
41 current_database: None,
42 token_expiry_ms: None,
43 }
44}
45
46// ---------------------------------------------------------------------------
47// Section B: session registry re-tested end-to-end via SharedState

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected