Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

test: add unit test case for func ReportMetrics #1262

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

fenggw-fnst
Copy link
Contributor

Signed-off-by: Guangwen Feng [email protected]

Ⅰ. Describe what this PR did

Add unit test case for func ReportMetrics in supernode_api.go

Ⅱ. Does this pull request fix one issue?

NONE

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

Ⅳ. Describe how to verify it

go test github.com/dragonflyoss/Dragonfly/dfget/core/api -run Test -v

Ⅴ. Special notes for reviews

@codecov-io
Copy link

Codecov Report

Merging #1262 into master will increase coverage by 0.15%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1262      +/-   ##
==========================================
+ Coverage   48.58%   48.74%   +0.15%     
==========================================
  Files         121      121              
  Lines        7751     7751              
==========================================
+ Hits         3766     3778      +12     
+ Misses       3674     3660      -14     
- Partials      311      313       +2     
Impacted Files Coverage Δ
supernode/daemon/mgr/scheduler/manager.go 21.91% <0.00%> (-0.69%) ⬇️
dfget/core/api/supernode_api.go 81.70% <0.00%> (+15.85%) ⬆️

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 b184f25...988e45f. Read the comment docs.

Copy link
Member

@lowzj lowzj left a comment

Choose a reason for hiding this comment

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

LGTM

@lowzj lowzj merged commit aa709f6 into dragonflyoss:master Mar 26, 2020
@fenggw-fnst fenggw-fnst deleted the work branch March 27, 2020 02:25
sungjunyoung pushed a commit to sungjunyoung/Dragonfly that referenced this pull request May 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants