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

tamada / sibling / 21340919193

25 Jan 2026 10:46PM UTC coverage: 64.325% (+2.3%) from 61.989%
21340919193

Pull #41

github

tamada
Merge branch 'release/v2.0.4' of github.com:tamada/sibling into release/v2.0.4
Pull Request #41: Release/v2.0.4

57 of 109 new or added lines in 5 files covered. (52.29%)

4 existing lines in 3 files now uncovered.

348 of 541 relevant lines covered (64.33%)

4.72 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

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

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

NEW
26
        generate_impl(Bash, &mut app, appname, outdir, format!("bash/{appname}"));
×
NEW
27
        generate_impl(Elvish, &mut app, appname, outdir, format!("elvish/{appname}"));
×
NEW
28
        generate_impl(Fish, &mut app, appname, outdir, format!("fish/{appname}"));
×
NEW
29
        generate_impl(PowerShell, &mut app, appname, outdir, format!("powershell/{appname}"));
×
NEW
30
        generate_impl(Zsh, &mut app, appname, outdir, format!("zsh/_{appname}"));
×
UNCOV
31
    }
×
32
}
33

34
#[allow(dead_code, unused_variables)]
NEW
35
pub(crate) fn generate(outdir: &Path) {
×
36
    #[cfg(debug_assertions)]
37
    generator::generate(outdir);
×
38
}
×
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