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

nydusify: add unit test #1526

Merged
merged 4 commits into from
Dec 25, 2023
Merged

Conversation

Desiki-high
Copy link
Member

@Desiki-high Desiki-high commented Dec 20, 2023

Relevant Issue (if applicable)

Ref: #1520

Details

Add more unit tests for nydusify.

Types of changes

What types of changes does your PullRequest introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation Update (if none of the other choices apply)

Checklist

Go over all the following points, and put an x in all the boxes that apply.

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@Desiki-high Desiki-high requested a review from a team as a code owner December 20, 2023 08:22
@Desiki-high Desiki-high requested review from imeoer, adamqqqplay and power-more and removed request for a team December 20, 2023 08:22
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (18ba2ed) 60.90% compared to head (530d259) 61.35%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1526      +/-   ##
==========================================
+ Coverage   60.90%   61.35%   +0.45%     
==========================================
  Files         141      145       +4     
  Lines       46277    46629     +352     
  Branches    44153    44153              
==========================================
+ Hits        28183    28610     +427     
+ Misses      16658    16565      -93     
- Partials     1436     1454      +18     
Files Coverage Δ
contrib/nydusify/pkg/packer/artifact.go 88.00% <100.00%> (+11.07%) ⬆️

... and 14 files with indirect coverage changes

@Desiki-high Desiki-high changed the title nydusify: add unit test for cmd/nydusify nydusify: add unit test Dec 22, 2023
@Desiki-high Desiki-high changed the title nydusify: add unit test [WIP]nydusify: add unit test Dec 22, 2023
@Desiki-high Desiki-high force-pushed the nydusify/ut-cmd branch 5 times, most recently from 8c02d5a to d09d167 Compare December 22, 2023 06:49
@Desiki-high Desiki-high requested a review from a team as a code owner December 22, 2023 07:02
@Desiki-high Desiki-high requested review from bergwolf and changweige and removed request for a team December 22, 2023 07:02
@Desiki-high Desiki-high changed the title [WIP]nydusify: add unit test nydusify: add unit test Dec 22, 2023
@Desiki-high Desiki-high force-pushed the nydusify/ut-cmd branch 7 times, most recently from 5aca773 to 33feb90 Compare December 24, 2023 07:23
master branch is unstable, change to v3.

Signed-off-by: Yadong Ding <[email protected]>
use `make test` to run unit tests, it don't need build.

Signed-off-by: Yadong Ding <[email protected]>
We had removed the tests files(e2e) in nydusify, we need add the unit tests
to improve test coverage.

Signed-off-by: Yadong Ding <[email protected]>
Copy link
Collaborator

@imeoer imeoer left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks!

@imeoer imeoer merged commit 2cd8ba2 into dragonflyoss:master Dec 25, 2023
54 checks passed
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