()
| 969 | |
| 970 | #[test] |
| 971 | fn test_detect_context_with_view() { |
| 972 | let txn = MockTxn; |
| 973 | let working_copy = Memory::new(); |
| 974 | let change_store = MemoryChangeStore::new(); |
| 975 | let view = ViewState::default(); |
| 976 | |
| 977 | let ctx = DetectContext::new(&txn, &working_copy, &change_store).with_view(&view); |
| 978 | |
| 979 | assert!(ctx.view().is_some()); |
| 980 | assert_eq!(ctx.view().unwrap().name, view.name); |
| 981 | } |
| 982 | |
| 983 | #[test] |
| 984 | fn test_detect_context_with_options() { |