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

tamada / sibling / 21945130899

12 Feb 2026 11:40AM UTC coverage: 71.867% (+7.5%) from 64.338%
21945130899

Pull #44

github

tamada
refactor: add unit tests for error display in sibling operations
Pull Request #44: refactor: reorganize code structure and update dependencies for improved functionality

262 of 349 new or added lines in 7 files covered. (75.07%)

3 existing lines in 2 files now uncovered.

562 of 782 relevant lines covered (71.87%)

3.95 hits per line

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

0.0
/cli/src/gencomp.rs
1
use std::path::Path;
2

3
#[cfg(debug_assertions)]
4
mod generator {
5
    use clap::{Command, CommandFactory};
6
    use clap_complete::Shell;
7
    use std::fs::File;
8
    use std::path::Path;
9

10
    #[cfg(debug_assertions)]
11
    fn generate_impl(s: Shell, app: &mut Command, appname: &str, outdir: &Path, file: String) {
×
12
        let destfile = outdir.join(file);
×
13
        std::fs::create_dir_all(destfile.parent().unwrap()).unwrap();
×
14
        if let Ok(mut dest) = File::create(destfile) {
×
15
            clap_complete::generate(s, app, appname, &mut dest);
×
16
        }
×
17
    }
×
18

19
    pub(super) fn generate(outdir: &Path) {
×
20
        use Shell::{Bash, Elvish, Fish, PowerShell, Zsh};
21
        let appname = "sibling";
×
22

23
        let mut app = crate::cli::CliOpts::command();
×
24
        app.set_bin_name(appname);
×
25

26
        generate_impl(Bash, &mut app, appname, outdir, format!("bash/{appname}"));
×
NEW
27
        generate_impl(
×
NEW
28
            Elvish,
×
NEW
29
            &mut app,
×
NEW
30
            appname,
×
NEW
31
            outdir,
×
NEW
32
            format!("elvish/{appname}"),
×
33
        );
34
        generate_impl(Fish, &mut app, appname, outdir, format!("fish/{appname}"));
×
NEW
35
        generate_impl(
×
NEW
36
            PowerShell,
×
NEW
37
            &mut app,
×
NEW
38
            appname,
×
NEW
39
            outdir,
×
NEW
40
            format!("powershell/{appname}"),
×
41
        );
42
        generate_impl(Zsh, &mut app, appname, outdir, format!("zsh/_{appname}"));
×
43
    }
×
44
}
45

46
#[allow(dead_code, unused_variables)]
47
pub(crate) fn generate(outdir: &Path) {
×
48
    #[cfg(debug_assertions)]
49
    generator::generate(outdir);
×
50
}
×
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