()
| 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() { |
no outgoing calls
no test coverage detected