Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid blind "using" to avoid errors on future colliding exports #31

Merged
merged 3 commits into from
Oct 10, 2023

Conversation

nhz2
Copy link
Member

@nhz2 nhz2 commented Oct 10, 2023

No description provided.

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (bc9c863) 98.10% compared to head (833e85a) 98.73%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   98.10%   98.73%   +0.63%     
==========================================
  Files           6        6              
  Lines         843      871      +28     
==========================================
+ Hits          827      860      +33     
+ Misses         16       11       -5     
Files Coverage Δ
src/ZipArchives.jl 100.00% <ø> (+100.00%) ⬆️
src/constants.jl 100.00% <ø> (ø)
src/filename-checks.jl 100.00% <ø> (ø)
src/reader.jl 97.59% <ø> (+0.04%) ⬆️
src/types.jl 100.00% <ø> (ø)
src/writer.jl 100.00% <ø> (ø)

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

test/common.jl Outdated
@@ -0,0 +1,29 @@
using ZipArchives:
Copy link
Member

Choose a reason for hiding this comment

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

Does it make sense to allow blind using in the tests to check exports?
Otherwise the internal changes look good to me!

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the suggestion. Any idea what kind of errors a blind using would catch? Also, I guess I should add tests on the latest stable Julia version instead of just 1.6.

@nhz2 nhz2 changed the title Avoid plain "using Foo" to avoid errors on future colliding exports Avoid blind "using" to avoid errors on future colliding exports Oct 10, 2023
@nhz2 nhz2 merged commit 5c6a5ba into main Oct 10, 2023
@nhz2 nhz2 deleted the fix-using-issues branch October 10, 2023 17:57
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