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

Add moar tests and fix isfreed() #245

Merged
merged 3 commits into from
Jul 10, 2024
Merged

Add moar tests and fix isfreed() #245

merged 3 commits into from
Jul 10, 2024

Conversation

JamesWrigley
Copy link
Member

I was going through our coverage and adding some tests for low hanging fruit, and I noticed that the definition of isfreed() might be wrong? I changed it in e5d75e9 to return whether the message handle is not in gc_protect; if I read the code correctly it will be held in the dict until ZMQ has finished with it and called gc_free_fn(), which will delete it from the dict.

Also changed the `SubString` test to actually use substrings with `@view`.
@JamesWrigley JamesWrigley self-assigned this Jul 9, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 9, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.64%. Comparing base (1a3d67c) to head (1290ef4).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #245      +/-   ##
==========================================
+ Coverage   83.10%   86.64%   +3.54%     
==========================================
  Files           9        9              
  Lines         367      367              
==========================================
+ Hits          305      318      +13     
+ Misses         62       49      -13     

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

@stevengj
Copy link
Contributor

Whoops, good catch! I'm surprised this hasn't caused crashes before now.

@stevengj stevengj merged commit d3cf3cb into master Jul 10, 2024
9 checks passed
@stevengj stevengj deleted the tests branch July 10, 2024 11:34
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.

3 participants