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

Function test_detect_context_with_view

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

Source from the content-addressed store, hash-verified

950
951 #[test]
952 fn test_detect_context_with_view() {
953 let txn = MockTxn;
954 let working_copy = Memory::new();
955 let change_store = MemoryChangeStore::new();
956 let view = ViewState::default();
957
958 let ctx = DetectContext::new(&txn, &working_copy, &change_store).with_view(&view);
959
960 assert!(ctx.view().is_some());
961 assert_eq!(ctx.view().unwrap().name, view.name);
962 }
963
964 #[test]
965 fn test_detect_context_with_options() {

Callers

nothing calls this directly

Calls 1

with_viewMethod · 0.45

Tested by

no test coverage detected