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

lpenz / ogle / 16181162591

09 Jul 2025 10:04PM UTC coverage: 61.605% (-0.7%) from 62.319%
16181162591

push

github

lpenz
Fix ogle on same output: we were always printing the header regardless

0 of 11 new or added lines in 2 files covered. (0.0%)

3 existing lines in 1 file now uncovered.

430 of 698 relevant lines covered (61.6%)

1.62 hits per line

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

0.0
/src/misc.rs
1
// Copyright (C) 2024 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
//! Misc utility functions
6

7
use crate::time_wrapper::Instant;
8

9
pub fn ofmt_helper(timestamp: &Instant, line: &str) -> String {
×
10
    format!("<O> {timestamp} {line}")
×
11
}
×
12

13
/// Print a message on stdout, with a timestamp, in the standard
14
/// `ogle` format
15
macro_rules! ofmt {
16
    ($timestamp: expr, $($t:tt)*) => {{
17
        crate::misc::ofmt_helper($timestamp, &format!($($t)*))
18
    }};
19
}
20

NEW
21
pub fn ofmt_timeless_helper(line: &str) -> String {
×
NEW
22
    format!("<O> {line}")
×
NEW
23
}
×
24

25
/// Print a message on stdout, without a timestamp, in the standard
26
/// `ogle` format
27
macro_rules! ofmt_timeless {
28
    ($($t:tt)*) => {{
29
        crate::misc::ofmt_timeless_helper(&format!($($t)*))
30
    }};
31
}
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