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

Function test_entry

nodedb/src/control/security/siem.rs:224–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

222 use super::*;
223
224 fn test_entry() -> AuditEntry {
225 AuditEntry {
226 seq: 1,
227 timestamp_us: 0,
228 event: super::super::audit::AuditEvent::AuthSuccess,
229 tenant_id: None,
230 database_id: None,
231 auth_user_id: "u1".into(),
232 auth_user_name: "alice".into(),
233 session_id: "s1".into(),
234 source: "10.0.0.1".into(),
235 detail: "test".into(),
236 prev_hash: String::new(),
237 }
238 }
239
240 #[test]
241 fn buffer_and_drain() {

Callers 2

buffer_and_drainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected