Skip to content

SYN-5470 Implement modulo operator for storm #3168

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

Merged
merged 4 commits into from
Jun 5, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jun 2, 2023

  • Fixes SYN-5470
  • Update grammar to include modulo operator (%)
  • Update AST to handle module
  • Update stormtypes.Number to have dunders for mod operations
  • Update tests to include modulo checks and precedence WRT other math operations

MichaelSquires and others added 2 commits June 2, 2023 12:08
- Fixes SYN-5470
- Update grammar to include modulo operator (%)
- Update AST to handle module
- Update stormtypes.Number to have dunders for mod operations
- Update tests to include modulo checks and precedence WRT other math
  operations
@vEpiphyte vEpiphyte added enhancement reqChangelog requires changelog labels Jun 2, 2023
@vEpiphyte vEpiphyte added this to the v2.13x.x milestone Jun 2, 2023
@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.10 ⚠️

Comparison is base (dba42be) 97.31% compared to head (765c86a) 97.22%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3168      +/-   ##
==========================================
- Coverage   97.31%   97.22%   -0.10%     
==========================================
  Files         223      223              
  Lines       44454    44469      +15     
==========================================
- Hits        43262    43233      -29     
- Misses       1192     1236      +44     
Flag Coverage Δ
linux 97.22% <100.00%> (+<0.01%) ⬆️
linux_replay ?

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

Impacted Files Coverage Δ
synapse/lib/parser.py 98.51% <ø> (ø)
synapse/lib/storm_format.py 100.00% <ø> (ø)
synapse/lib/ast.py 98.91% <100.00%> (+<0.01%) ⬆️
synapse/lib/stormtypes.py 98.76% <100.00%> (+<0.01%) ⬆️

... and 9 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ghost ghost changed the title WIP: Implement modulo operator for storm WIP: SYN-5470 Implement modulo operator for storm Jun 2, 2023
@ghost
Copy link
Author

ghost commented Jun 2, 2023

I didn't see any documentation on the existing math operations. If I just missed it, let me know and I'll update it as needed.

@ghost ghost marked this pull request as ready for review June 2, 2023 18:12
@ghost ghost changed the title WIP: SYN-5470 Implement modulo operator for storm SYN-5470 Implement modulo operator for storm Jun 2, 2023
@ghost ghost force-pushed the blackout/storm-modulo-support branch from d44fde3 to 765c86a Compare June 5, 2023 13:12
@invisig0th invisig0th requested a review from Cisphyx June 5, 2023 13:40
@invisig0th
Copy link
Contributor

I'd like one more pass from cisphyx before this gets merged, but looking great!

@invisig0th invisig0th merged commit 3b3b2cc into master Jun 5, 2023
@invisig0th invisig0th deleted the blackout/storm-modulo-support branch June 5, 2023 13:47
@vEpiphyte vEpiphyte removed the reqChangelog requires changelog label Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants