diff options
author | Thomas Otto <th1000s@posteo.net> | 2021-09-28 21:38:06 +0200 |
---|---|---|
committer | Thomas Otto <th1000s@posteo.net> | 2021-10-16 14:07:30 +0200 |
commit | dbde169a28032a501f54410ca840c9981871e007 (patch) | |
tree | 57095ec5ea4319e4423e2e583957d432f349bf61 /src/config.rs | |
parent | 1b238dbb8edd7c2ea5a11da6a904ec73e784c6cc (diff) |
Tests: store length of skipped header separately
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
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; |