()
| 981 | |
| 982 | #[test] |
| 983 | fn test_detect_context_clone() { |
| 984 | let txn = MockTxn; |
| 985 | let working_copy = Memory::new(); |
| 986 | let change_store = MemoryChangeStore::new(); |
| 987 | |
| 988 | let ctx = DetectContext::new(&txn, &working_copy, &change_store) |
| 989 | .with_options(DetectOptions::new().with_prefix("test/")); |
| 990 | |
| 991 | let cloned = ctx.clone(); |
| 992 | |
| 993 | assert_eq!(cloned.prefix(), "test/"); |
| 994 | assert_eq!(cloned.algorithm(), ctx.algorithm()); |
| 995 | } |
| 996 | |
| 997 | // RecordContext Tests |
| 998 |
nothing calls this directly
no test coverage detected