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

Source from the content-addressed store, hash-verified

1042
1043 #[test]
1044 fn test_record_context_with_options() {
1045 let txn = MockTxn;
1046 let working_copy = Memory::new();
1047 let change_store = MemoryChangeStore::new();
1048 let view = ViewState::default();
1049
1050 let ctx = RecordContext::new(&txn, &view, &working_copy, &change_store)
1051 .with_options(DetectOptions::new().with_algorithm(Algorithm::Patience));
1052
1053 assert_eq!(ctx.options().algorithm, Algorithm::Patience);
1054 }
1055
1056 #[test]
1057 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