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

Function test_record_context_new

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

Source from the content-addressed store, hash-verified

1017
1018 #[test]
1019 fn test_record_context_new() {
1020 let txn = MockTxn;
1021 let working_copy = Memory::new();
1022 let change_store = MemoryChangeStore::new();
1023 let view = ViewState::default();
1024
1025 let ctx = RecordContext::new(&txn, &view, &working_copy, &change_store);
1026
1027 assert!(ctx.is_empty());
1028 assert_eq!(ctx.hunk_count(), 0);
1029 assert_eq!(ctx.view().name, view.name);
1030 }
1031
1032 #[test]
1033 fn test_record_context_with_builder() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected