Skip to content

ref: Replace test key LazyLock statics with compile-time constants#510

Open
jan-auer wants to merge 1 commit into
mainfrom
ref/test-key-include-str
Open

ref: Replace test key LazyLock statics with compile-time constants#510
jan-auer wants to merge 1 commit into
mainfrom
ref/test-key-include-str

Conversation

@jan-auer

Copy link
Copy Markdown
Member

Compile-time include_str! / concat!(env!()) instead of runtime LazyLock<fs::read_to_string> — cheaper, no blocking I/O from async test bodies, and removes a duplicate definition in the Rust client tests.

Use include_str! and concat!(env!()) so test keys and paths are
embedded at compile time instead of read from disk at runtime via
LazyLock. Removes a duplicate LazyLock in the Rust client tests.
@jan-auer jan-auer requested a review from a team as a code owner June 22, 2026 16:28
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.46%. Comparing base (4b0fe8f) to head (ebdc6c5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #510      +/-   ##
==========================================
- Coverage   87.47%   87.46%   -0.02%     
==========================================
  Files          86       86              
  Lines       13912    13900      -12     
==========================================
- Hits        12169    12157      -12     
  Misses       1743     1743              
Components Coverage Δ
Rust Backend 92.26% <100.00%> (ø)
Rust Client 80.06% <ø> (ø)
Python Client 88.51% <ø> (ø)

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants