MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / test_log_operations

Function test_log_operations

graphlite/src/txn/log.rs:325–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

log_operationMethod · 0.45

Tested by

no test coverage detected