From 9001c82c6004d87d95bc9007bf195489635f5e83 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 4 Oct 2024 15:24:26 +0200 Subject: Fix reverse log reader, add unit tests for it --- src/common.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common.rs') diff --git a/src/common.rs b/src/common.rs index c4fce39..9ea43aa 100644 --- a/src/common.rs +++ b/src/common.rs @@ -15,6 +15,7 @@ pub const EXCL_LOCK_REQUEST_FILENAME: &str = "excl_lock_req"; pub const DEFAULT_READ_BUF_SIZE: usize = 1024 * 1024; // 1 MB pub const FIELD_SEPARATOR: u8 = b'\x1C'; pub const ESCAPE_CHARACTER: u8 = b'\x1D'; +pub const TEST_RESOURCES_DIR: &str = "tests/resources"; // Special sequences. Note: these must have the same length! // Since the log is read both forwards and backwards, we must have a signal -- cgit v1.3