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

cleanup: rm runtime.Caller with const func name #2523

Merged
merged 1 commit into from
Dec 2, 2018

Conversation

ZYecho
Copy link
Contributor

@ZYecho ZYecho commented Dec 2, 2018

Signed-off-by: zhangyue zy675793960@yeah.net

Ⅰ. Describe what this PR did

As the title desc, just clean up some test code to make more readable.

Ⅱ. Does this pull request fix one issue?

None.

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

None.

Ⅳ. Describe how to verify it

wait for CI pass.

Ⅴ. Special notes for reviews

None.

Signed-off-by: zhangyue <zy675793960@yeah.net>
@codecov
Copy link

codecov bot commented Dec 2, 2018

Codecov Report

Merging #2523 into master will decrease coverage by 0.1%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2523      +/-   ##
=========================================
- Coverage    69.1%     69%   -0.11%     
=========================================
  Files         278     278              
  Lines       18454   18454              
=========================================
- Hits        12753   12734      -19     
- Misses       4251    4264      +13     
- Partials     1450    1456       +6
Flag Coverage Δ
#criv1alpha1test 31.24% <ø> (+0.1%) ⬆️
#criv1alpha2test 35.54% <ø> (+0.03%) ⬆️
#integrationtest 40.3% <ø> (-0.11%) ⬇️
#nodee2etest 32.77% <ø> (-0.08%) ⬇️
#unittest 26.72% <ø> (ø) ⬆️
Impacted Files Coverage Δ
daemon/mgr/system.go 67.93% <0%> (-5.35%) ⬇️
ctrd/watch.go 80.28% <0%> (-4.23%) ⬇️
daemon/mgr/events.go 96.29% <0%> (-3.71%) ⬇️
ctrd/client.go 66.92% <0%> (-2.31%) ⬇️
cri/v1alpha2/cri_wrapper.go 63.6% <0%> (-1.2%) ⬇️
ctrd/container.go 58.49% <0%> (-0.8%) ⬇️
daemon/mgr/container_utils.go 84.81% <0%> (-0.64%) ⬇️
daemon/mgr/container.go 57.62% <0%> (-0.43%) ⬇️
cri/v1alpha2/cri.go 69.93% <0%> (-0.26%) ⬇️
cri/v1alpha1/cri.go 60.59% <0%> (+0.33%) ⬆️
... and 2 more

Copy link
Contributor

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

@fuweid fuweid merged commit cb5f222 into AliyunContainerService:master Dec 2, 2018
@fuweid
Copy link
Contributor

fuweid commented Dec 2, 2018

@ZYecho I think we can upgrade the go-check package so that we can use https://godoc.org/gopkg.in/check.v1#C.TestName to get the function name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants