-
Notifications
You must be signed in to change notification settings - Fork 63
Clean up ExprFunction test #529
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #529 +/- ##
============================================
- Coverage 80.91% 80.72% -0.20%
+ Complexity 1687 1681 -6
============================================
Files 196 196
Lines 14305 14307 +2
Branches 2944 2944
============================================
- Hits 11575 11549 -26
- Misses 1776 1798 +22
- Partials 954 960 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes already approved previously . Can you also add a more detailed PR description?
@@ -441,7 +441,7 @@ class SqlParser( | |||
else -> errMalformedParseTree("Unsupported path component: ${it.type}") | |||
} | |||
} | |||
path(rootExpr, pathComponents, metas) | |||
path(rootExpr, pathComponents, rootExpr.metas) // Here we use its root source location, since itself has no source location (not a token). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: for future PRs, it would be helpful to start with a clean commit history (i.e. not including commits from other PRs). GitHub shows this as a changed file even though your target branch, main
, already has this change, which can be confusing for the reviewer.
You could start by creating the branch directly off of main
:
git checkout main
git pull
git checkout feature-branch
... (make and commit changes) ...
... (create PR with feature-branch) ...
If the origin GitHub branch already has the commits, you can rebase and force push to the origin branch.
Description of Changes
ExprFunction
test, used one parameterized test to cover all pass test cases.ExprFunction
test, used one parameterized test to cover all invalid arguments test cases.InvalidArgTypeChecker
to automatically generate invalid argument type test cases for eachExprFunction
.InvalidArityChecker
to automatically generate invalid arity test cases for eachExprFunction
.The first 4 commits are not relevant.