Skip to content

Conversation

@NathanBaulch
Copy link
Contributor

I noticed some inconsistencies in panic strings during my work on #672. I went with the pattern used in lo.RandomString and o.ChunkString with the function name prefix and lower case message. I don't mind what convention is used as long as it's consistent.
Note that I haven't touched the panics returned from Must which use a "must: " prefix in lowercase, since consumers might have recover logic that inspects this relatively common panic message.

@codecov
Copy link

codecov bot commented Sep 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.49%. Comparing base (3bc887c) to head (0740cab).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #678   +/-   ##
=======================================
  Coverage   94.49%   94.49%           
=======================================
  Files          18       18           
  Lines        3305     3305           
=======================================
  Hits         3123     3123           
  Misses        170      170           
  Partials       12       12           
Flag Coverage Δ
unittests 94.49% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

Copy link
Owner

@samber samber left a comment

Choose a reason for hiding this comment

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

Hey @NathanBaulch

Thanks for this fix. Just a little comment ;)

- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: 'v2.4'
Copy link
Owner

Choose a reason for hiding this comment

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

why not using latest version ?

Copy link
Owner

Choose a reason for hiding this comment

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

I removed this line to allow the merge. Feel free to reply to me in #672.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See #671 for an explanation.

Updated golangci-lint action version to v2.4.
@samber samber merged commit b5e290a into samber:master Sep 24, 2025
10 of 11 checks passed
@NathanBaulch NathanBaulch deleted the panic branch September 24, 2025 20:40
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