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

lpenz / ogle / 16092339124

05 Jul 2025 09:45PM UTC coverage: 62.041% (+16.6%) from 45.475%
16092339124

push

github

lpenz
Complete refactoring using layers that should be easier to test

Layers connected via streams, which we can mock and test.
This combines a bunch of commits that documented this slow conversion.

344 of 539 new or added lines in 12 files covered. (63.82%)

2 existing lines in 2 files now uncovered.

389 of 627 relevant lines covered (62.04%)

1.64 hits per line

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

0.0
/src/orchestrator.rs
1
// Copyright (C) 2025 Leandro Lisboa Penz <lpenz@lpenz.org>
2
// This file is subject to the terms and conditions defined in
3
// file 'LICENSE', which is part of this source code package.
4

5
use color_eyre::Result;
6
use tracing::instrument;
7

8
use crate::cli::Cli;
9
use crate::input::InputStream;
10
use crate::output::output;
11
use crate::sys::SysApi;
12
use crate::time_wrapper::Duration;
13
use crate::view::Pipe;
14

15
#[instrument(level = "debug")]
NEW
16
pub async fn run<SI: SysApi>(cli: Cli, sys: SI) -> Result<()> {
×
17
    let refresh = Duration::milliseconds(250);
18
    let sleep = Duration::seconds(cli.period.into());
19
    let input = InputStream::new(sys.clone(), cli.get_cmd(), refresh, sleep)?;
20
    let view = Pipe::new(cli.get_cmd(), refresh, sleep, input);
21
    output(view).await
UNCOV
22
}
×
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