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

Function show_sessions_lists_active

nodedb/tests/security.rs:83–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82#[test]
83fn show_sessions_lists_active() {
84 let reg = SessionRegistry::new();
85 reg.register("sess-xyz", &sample_params(7, "carol"))
86 .unwrap();
87 let all = reg.list_all();
88 assert_eq!(all.len(), 1);
89 assert_eq!(all[0].session_id, "sess-xyz");
90 assert_eq!(all[0].user_id, 7);
91 assert_eq!(all[0].protocol, "native");
92}
93
94// ---------------------------------------------------------------------------
95// Section B + F: credential version advances on mutation

Callers

nothing calls this directly

Calls 3

sample_paramsFunction · 0.85
registerMethod · 0.45
list_allMethod · 0.45

Tested by

no test coverage detected