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:971–981  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

with_viewMethod · 0.45

Tested by

no test coverage detected