Skip to content

refactor: avoid building strings in throw=false path of splitdef#51

Merged
oxinabox merged 2 commits into
JuliaTesting:masterfrom
AayushSabharwal:as/lazy-str
Jul 22, 2026
Merged

refactor: avoid building strings in throw=false path of splitdef#51
oxinabox merged 2 commits into
JuliaTesting:masterfrom
AayushSabharwal:as/lazy-str

Conversation

@AayushSabharwal

Copy link
Copy Markdown
Contributor

When throw=false, these strings are unused.

@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.41%. Comparing base (94b06a5) to head (01421fd).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #51      +/-   ##
==========================================
+ Coverage   97.40%   97.41%   +0.01%     
==========================================
  Files           5        5              
  Lines         231      232       +1     
==========================================
+ Hits          225      226       +1     
  Misses          6        6              

☔ 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.

Comment thread src/function.jl Outdated
Comment on lines +1 to +5
@static if !isdefined(Base, :LazyString)
# `LazyString` was added in Julia 1.8. On older versions fall back to eagerly
# building the string; correctness is preserved, only the laziness is lost.
LazyString(parts...) = string(parts...)
end

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move this into a seperate file called compat.jl that is included at top level?
I find that is helpful find finding things like this that can be deleted once we drop support for older versions

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 6a4b37d

@oxinabox

Copy link
Copy Markdown
Member

other than location this seems fine

@AayushSabharwal

Copy link
Copy Markdown
Contributor Author

Thanks for taking a look!

@oxinabox
oxinabox merged commit a41c8b9 into JuliaTesting:master Jul 22, 2026
10 of 15 checks passed
@oxinabox

Copy link
Copy Markdown
Member

thanks!

@AayushSabharwal
AayushSabharwal deleted the as/lazy-str branch July 22, 2026 10:09
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