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

Source from the content-addressed store, hash-verified

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