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

Function test_detect_context_new

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

Source from the content-addressed store, hash-verified

955
956 #[test]
957 fn test_detect_context_new() {
958 let txn = MockTxn;
959 let working_copy = Memory::new();
960 let change_store = MemoryChangeStore::new();
961
962 let ctx = DetectContext::new(&txn, &working_copy, &change_store);
963
964 assert!(ctx.view().is_none());
965 assert_eq!(ctx.algorithm(), Algorithm::Myers);
966 assert!(ctx.check_mtime());
967 assert!(ctx.prefix().is_empty());
968 }
969
970 #[test]
971 fn test_detect_context_with_view() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected