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

Function session_cleanup

nodedb/src/control/server/pgwire/session/tests.rs:49–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48#[test]
49fn session_cleanup() {
50 let store = SessionStore::new();
51 let addr: std::net::SocketAddr = "127.0.0.1:5000".parse().unwrap();
52 store.ensure_session(addr);
53 assert_eq!(store.count(), 1);
54
55 store.remove(&addr);
56 assert_eq!(store.count(), 0);
57}
58
59#[test]
60fn live_subscription_store_and_check() {

Callers

nothing calls this directly

Calls 3

ensure_sessionMethod · 0.80
parseMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected