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

ssa: add support for min and max built-in functions #614

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

aofei
Copy link
Member

@aofei aofei commented Jul 30, 2024

No description provided.

Copy link

codecov bot commented Jul 30, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 6 lines in your changes missing coverage. Please review.

Project coverage is 97.57%. Comparing base (519b14d) to head (0a884df).
Report is 2 commits behind head on main.

Files Patch % Lines
ssa/expr.go 57.14% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #614      +/-   ##
==========================================
- Coverage   97.69%   97.57%   -0.13%     
==========================================
  Files          19       19              
  Lines        4556     4569      +13     
==========================================
+ Hits         4451     4458       +7     
- Misses         88       94       +6     
  Partials       17       17              

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

@aofei aofei marked this pull request as draft July 30, 2024 09:29
@aofei aofei marked this pull request as ready for review July 30, 2024 09:44
@@ -521,3 +521,34 @@ func TestBasicType(t *testing.T) {
}
}
}

func TestCompareSelect(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

已经很少这样写测试案例了。推荐在 _testdata 目录里面加测试例子

Copy link
Member Author

Choose a reason for hiding this comment

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

这个其实是因为不能在 _testdata 里面加所以才写成这样的,clearminmax 都需要 go.mod 里的 go version 至少是 1.21

Copy link
Member Author

Choose a reason for hiding this comment

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

另外加的话是不是也应该是加在 cl/_testrt/builtin 里才对?看目录结构感觉是的

@xushiwei xushiwei merged commit e7d959d into goplus:main Jul 30, 2024
3 of 5 checks passed
@aofei aofei deleted the min-max branch July 30, 2024 13:04
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