MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_record_context_with_builder

Function test_record_context_with_builder

atomic-core/src/record/context.rs:1033–1045  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1031
1032 #[test]
1033 fn test_record_context_with_builder() {
1034 let txn = MockTxn;
1035 let working_copy = Memory::new();
1036 let change_store = MemoryChangeStore::new();
1037 let view = ViewState::default();
1038
1039 let mut builder = RecordBuilder::with_capacity(10, 1024);
1040 builder.force_rediff = true;
1041
1042 let ctx = RecordContext::with_builder(&txn, &view, &working_copy, &change_store, builder);
1043
1044 assert!(ctx.builder().force_rediff);
1045 }
1046
1047 #[test]
1048 fn test_record_context_with_options() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected