• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MitMaro / git-interactive-rebase-tool / 14340401715

08 Apr 2025 06:00PM UTC coverage: 95.488% (-1.9%) from 97.339%
14340401715

Pull #959

github

web-flow
Merge 755a26246 into aa2157af9
Pull Request #959: WIP: Move Diff to Thread

372 of 483 new or added lines in 31 files covered. (77.02%)

4 existing lines in 2 files now uncovered.

4741 of 4965 relevant lines covered (95.49%)

2.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/diff/action.rs
1
use std::fmt::{Debug, Formatter};
2

3
pub(crate) enum Action {
4
        End,
5
        Load(String),
6
}
7

8
impl Debug for Action {
NEW
9
        fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
×
NEW
10
                match *self {
×
NEW
11
                        Self::End => write!(f, "End"),
×
NEW
12
                        Self::Load(ref hash) => write!(f, "Load({hash})"),
×
13
                }
14
        }
15
}
16
// #[cfg(test)]
17
// mod tests {
18
//         use rstest::rstest;
19
//
20
//         use super::*;
21
//         use crate::search::{Interrupter, SearchResult};
22
//
23
//         struct TestSearchable;
24
//
25
//         impl Searchable for TestSearchable {
26
//                 fn reset(&mut self) {}
27
//
28
//                 fn search(&mut self, _: Interrupter, _: &str) -> SearchResult {
29
//                         SearchResult::None
30
//                 }
31
//         }
32
//
33
//         #[rstest]
34
//         #[case::cancel(Action::Cancel, "Cancel")]
35
//         #[case::cont(Action::Continue, "Continue")]
36
//         #[case::end(Action::End, "End")]
37
//         #[case::set_searchable(Action::SetSearchable(Box::new(TestSearchable {})), "SetSearchable(_)")]
38
//         #[case::start(Action::Start(String::from("foo")), "Start(foo)")]
39
//         fn debug(#[case] action: Action, #[case] expected: &str) {
40
//                 assert_eq!(format!("{action:?}"), expected);
41
//         }
42
// }
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc