Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

test: add unit test case for func ParsePieceIndex #1160

Merged
merged 1 commit into from
Jan 5, 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 ParsePieceIndex

Ⅱ. 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/supernode/util -run Test -v

Ⅴ. Special notes for reviews

@codecov-io
Copy link

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1160      +/-   ##
==========================================
+ Coverage   47.13%   47.18%   +0.04%     
==========================================
  Files         113      113              
  Lines        7181     7181              
==========================================
+ Hits         3385     3388       +3     
+ Misses       3528     3527       -1     
+ Partials      268      266       -2
Impacted Files Coverage Δ
supernode/daemon/mgr/scheduler/manager.go 22.6% <0%> (+0.68%) ⬆️
supernode/util/range_util.go 100% <0%> (+5.26%) ⬆️

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 48a4736...3d768bb. Read the comment docs.

@starnop
Copy link
Contributor

starnop commented Jan 5, 2020

LGTM. @fenggw-fnst Thanks for your contribution. 😄

@starnop starnop merged commit 7894da1 into dragonflyoss:master Jan 5, 2020
@fenggw-fnst fenggw-fnst deleted the work branch January 7, 2020 07:32
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