()
| 323 | |
| 324 | #[test] |
| 325 | fn test_log_operations() { |
| 326 | let txn_id = TransactionId::new(); |
| 327 | let mut log = TransactionLog::new(txn_id); |
| 328 | |
| 329 | // Log an insert operation |
| 330 | log.log_operation(UndoOperation::InsertNode { |
| 331 | graph_path: "/test_graph".to_string(), |
| 332 | node_id: "node1".to_string(), |
| 333 | }); |
| 334 | |
| 335 | assert!(!log.is_empty()); |
| 336 | assert_eq!(log.operation_count, 1); |
| 337 | assert!(log.estimated_size_bytes > std::mem::size_of::<TransactionLog>()); |
| 338 | } |
| 339 | |
| 340 | #[test] |
| 341 | fn test_rollback_order() { |
nothing calls this directly
no test coverage detected