summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
authorThomas Otto <th1000s@posteo.net>2021-09-28 21:38:06 +0200
committerThomas Otto <th1000s@posteo.net>2021-10-16 14:07:30 +0200
commitdbde169a28032a501f54410ca840c9981871e007 (patch)
tree57095ec5ea4319e4423e2e583957d432f349bf61 /src/config.rs
parent1b238dbb8edd7c2ea5a11da6a904ec73e784c6cc (diff)
Tests: store length of skipped header separately
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index d89af7d5..4074551b 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -623,6 +623,10 @@ pub fn delta_unreachable(message: &str) -> ! {
}
#[cfg(test)]
+// Usual length of the header returned by `run_delta()`, often `skip()`-ed.
+pub const HEADER_LEN: usize = 7;
+
+#[cfg(test)]
pub mod tests {
use crate::bat_utils::output::PagingMode;
use crate::cli;