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

pomsky-lang / pomsky / 6421156176

05 Oct 2023 03:27PM UTC coverage: 80.191% (-0.1%) from 80.315%
6421156176

push

github

Aloso
chore: update deps, fix new lints

25 of 25 new or added lines in 6 files covered. (100.0%)

3267 of 4074 relevant lines covered (80.19%)

246.52 hits per line

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

60.0
/pomsky-bin/src/format.rs
1
use std::io::Write;
2

3
macro_rules! efprintln {
4
    ($($args:tt)*) => {{
5
        $crate::format::efwriteln(helptext::text![$($args)*]);
6
    }};
7
}
8

9
macro_rules! efprint {
10
    ($($args:tt)*) => {{
11
        $crate::format::efwrite(helptext::text![$($args)*]);
12
    }};
13
}
14

15
pub(crate) fn supports_color() -> bool {
54✔
16
    matches!(
54✔
17
        ::supports_color::on_cached(::supports_color::Stream::Stderr),
54✔
18
        Some(::supports_color::ColorLevel { has_basic: true, .. })
19
    )
20
}
54✔
21

22
pub(crate) fn efwriteln(segments: &[helptext::Segment]) {
×
23
    let mut buf = std::io::stderr().lock();
×
24
    for segment in segments {
×
25
        let _ = segment.write(&mut buf, supports_color(), 0);
×
26
    }
27
    let _ = buf.write_all(b"\n");
×
28
}
×
29

30
pub(crate) fn efwrite(segments: &[helptext::Segment]) {
13✔
31
    let mut buf = std::io::stderr().lock();
13✔
32
    for segment in segments {
67✔
33
        let _ = segment.write(&mut buf, supports_color(), 0);
54✔
34
    }
35
}
13✔
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

© 2025 Coveralls, Inc