()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected