()
| 1072 | |
| 1073 | #[test] |
| 1074 | fn test_record_context_take_builder() { |
| 1075 | let txn = MockTxn; |
| 1076 | let working_copy = Memory::new(); |
| 1077 | let change_store = MemoryChangeStore::new(); |
| 1078 | let view = ViewState::default(); |
| 1079 | |
| 1080 | let mut ctx = RecordContext::new(&txn, &view, &working_copy, &change_store); |
| 1081 | let first_builder = ctx.take_builder(); |
| 1082 | let second_builder = ctx.take_builder(); |
| 1083 | |
| 1084 | // Both should be empty since we're not adding any changes |
| 1085 | assert!(first_builder.is_empty()); |
| 1086 | assert!(second_builder.is_empty()); |
| 1087 | } |
| 1088 | |
| 1089 | #[test] |
| 1090 | fn test_record_context_builder_mut() { |
nothing calls this directly
no test coverage detected