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 support for Expr.Match #95

Merged
merged 3 commits into from
Feb 22, 2022
Merged

Add support for Expr.Match #95

merged 3 commits into from
Feb 22, 2022

Conversation

jeffmay
Copy link
Owner

@jeffmay jeffmay commented Feb 17, 2022

  • Add support for guard expressions
  • Use existential types for case expressions
  • Add unit tests

@@ -30,7 +30,6 @@ trait WrapSelected[W[+_], OP[_]] {
path: DataPath,
element: O,
)(implicit
opA: OP[I],
Copy link
Owner Author

Choose a reason for hiding this comment

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

This never really made sense... OP stands for "output parameter" and this is being applied to the input.

- Add support for guard expressions
- Use existential types for MatchCase
- Add unit tests
- Add branch index to DebugArgs
- Add more tests and separate sequence tests
- Add evidence of subtyping to Match visitor method
@codecov
Copy link

codecov bot commented Feb 18, 2022

Codecov Report

Merging #95 (f1a248e) into v1 (b06201a) will increase coverage by 1.05%.
The diff coverage is 81.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v1      #95      +/-   ##
==========================================
+ Coverage   60.38%   61.44%   +1.05%     
==========================================
  Files          93       93              
  Lines        1949     1987      +38     
  Branches       18       21       +3     
==========================================
+ Hits         1177     1221      +44     
+ Misses        772      766       -6     
Impacted Files Coverage Δ
core-v1/src/main/scala/data/Justified.scala 83.01% <ø> (ø)
core-v1/src/main/scala/dsl/BuildExprDsl.scala 77.77% <ø> (ø)
core-v1/src/main/scala/dsl/WrapSelected.scala 100.00% <ø> (ø)
...src/main/scala/engine/ImmutableCachingEngine.scala 89.83% <0.00%> (-1.97%) ⬇️
core-v1/src/main/scala/engine/StandardEngine.scala 75.71% <0.00%> (-0.55%) ⬇️
core-v1/src/main/scala/algebra/Expr.scala 44.33% <60.00%> (+0.77%) ⬆️
core-v1/src/main/scala/debug/DebugArgs.scala 97.61% <100.00%> (+0.05%) ⬆️
...-v1/src/main/scala/dsl/UnwrappedBuildExprDsl.scala 89.87% <100.00%> (+0.68%) ⬆️
...re-v1/src/main/scala/dsl/WrappedBuildExprDsl.scala 78.57% <100.00%> (+3.57%) ⬆️
core-v1/src/main/scala/engine/SimpleEngine.scala 40.00% <100.00%> (+15.21%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b06201a...f1a248e. Read the comment docs.

Copy link
Collaborator

@paul-a-kennedy-rally paul-a-kennedy-rally left a comment

Choose a reason for hiding this comment

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

LGTM

@jeffmay jeffmay merged commit 194bf0f into v1 Feb 22, 2022
@jeffmay jeffmay deleted the jeff/v1/matching-case branch February 22, 2022 01: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