()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected