Skip to content

Commit 1c02a04

Browse files
committed
chore(codex): format fallback loader test
Apply the treefmt change required by the pre-push hook in the Codex fallback loader test. Keeping this as a separate commit isolates the hook-driven formatting change from the models.dev pricing fix.
1 parent 18d18c9 commit 1c02a04

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • rust/crates/ccusage/src/adapter/codex

‎rust/crates/ccusage/src/adapter/codex/loader.rs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ mod tests {
582582

583583
#[test]
584584
fn resolves_codex_auto_review_with_invalid_event_date_falls_back_to_file_mtime() {
585-
// When the log's own timestamp fields are unparseable AND no alternate
585+
// When the log's own timestamp fields are unparsable AND no alternate
586586
// timestamp fields are present, the parser falls back to the file's
587587
// modified time so the date-based fallback table still resolves to a
588588
// real model rather than locking in a misleading malformed string.
@@ -617,10 +617,10 @@ mod tests {
617617
// File mtime is "now" at fixture creation, which is on or after every
618618
// entry currently in the fallback table, so resolution lands on the
619619
// newest known model. The exact value updates when the table grows.
620-
assert!(events
621-
.iter()
622-
.all(|event| event.model.as_deref().is_some_and(|model| model
623-
.starts_with("gpt-5"))));
620+
assert!(events.iter().all(|event| event
621+
.model
622+
.as_deref()
623+
.is_some_and(|model| model.starts_with("gpt-5"))));
624624
assert!(events.iter().all(|event| event.is_fallback_model));
625625
}
626626

0 commit comments

Comments
 (0)