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

Function test_record_context_with_options

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

Source from the content-addressed store, hash-verified

1027
1028 #[test]
1029 fn test_record_context_with_options() {
1030 let txn = MockTxn;
1031 let working_copy = Memory::new();
1032 let change_store = MemoryChangeStore::new();
1033 let view = ViewState::default();
1034
1035 let ctx = RecordContext::new(&txn, &view, &working_copy, &change_store)
1036 .with_options(DetectOptions::new().with_algorithm(Algorithm::Patience));
1037
1038 assert_eq!(ctx.options().algorithm, Algorithm::Patience);
1039 }
1040
1041 #[test]
1042 fn test_record_context_into_builder() {

Callers

nothing calls this directly

Calls 2

with_optionsMethod · 0.45
with_algorithmMethod · 0.45

Tested by

no test coverage detected