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

eugene-babichenko / fixit / 17853263575

19 Sep 2025 08:40AM UTC coverage: 90.236% (-0.5%) from 90.734%
17853263575

push

github

eugene-babichenko
more reliable terminal program detection in quick fixes

2 of 11 new or added lines in 5 files covered. (18.18%)

804 of 891 relevant lines covered (90.24%)

372.2 hits per line

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

91.67
/src/get_text/tmux.rs
1
use crate::get_text::find_command_output;
2
use std::{env, process::Command};
3

4
pub fn get_text(cmd: &str, depth: usize) -> Option<String> {
1✔
5
    if &env::var("TERM_PROGRAM").ok()? != "tmux" {
1✔
NEW
6
        return None;
×
7
    }
1✔
8

9
    log::debug!("getting text from tmux");
1✔
10

11
    let output = Command::new("tmux")
1✔
12
        .args(["capture-pane", "-p", "-S", &format!("-{depth}")])
1✔
13
        .output()
1✔
14
        .ok()?;
1✔
15

16
    log::debug!("got tmux output");
1✔
17

18
    find_command_output(cmd, output.stdout, depth)
1✔
19
}
1✔
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