fix(cli): timeline tag width, test env isolation, and logging verbosity
Miscellaneous fixes across CLI and core modules: - Timeline: widen TAG_WIDTH from 10 to 11 to accommodate longer event type labels without truncation - render.rs: save and restore LORE_ICONS env var in glyph_mode test to prevent interference from the test environment leaking into or from other tests that set LORE_ICONS - logging.rs: adjust verbose=1 to info level (was debug), verbose=2 to debug — this reduces noise at -v while keeping -vv as the full debug experience - issues.rs, merge_requests.rs: use infodebug! macro consistently for ingestion summary logging Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1254,7 +1254,15 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn glyph_mode_force_ascii_is_fallback_when_no_explicit_icon_mode() {
|
||||
assert_eq!(GlyphMode::detect(None, true), GlyphMode::Ascii);
|
||||
// Clear env var so it doesn't short-circuit the force_ascii path.
|
||||
// SAFETY: tests run single-threaded per process for env-var-dependent tests.
|
||||
let saved = std::env::var("LORE_ICONS").ok();
|
||||
unsafe { std::env::remove_var("LORE_ICONS") };
|
||||
let result = GlyphMode::detect(None, true);
|
||||
if let Some(v) = saved {
|
||||
unsafe { std::env::set_var("LORE_ICONS", v) };
|
||||
}
|
||||
assert_eq!(result, GlyphMode::Ascii);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user