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

builder: add some unit test cases #1467

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

hijackthe2
Copy link
Contributor

Some unit test cases are added for compact.rs, lib.rs, merge.rs, stargz.rs, core/context.rs, and core/node.rs in builder/src to increase code coverage.

Relevant Issue (if applicable)

If there are Issues related to this PullRequest, please list it.

Details

Please describe the details of PullRequest.

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.

@hijackthe2 hijackthe2 requested a review from a team as a code owner November 3, 2023 02:11
@hijackthe2 hijackthe2 requested review from bergwolf, liubin and imeoer and removed request for a team November 3, 2023 02:11
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Merging #1467 (c015e3e) into master (689900c) will increase coverage by 8.13%.
The diff coverage is 95.82%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1467      +/-   ##
==========================================
+ Coverage   45.65%   53.79%   +8.13%     
==========================================
  Files         123      123              
  Lines       39170    40172    +1002     
  Branches    39170    40172    +1002     
==========================================
+ Hits        17885    21610    +3725     
+ Misses      20299    17336    -2963     
- Partials      986     1226     +240     
Files Coverage Δ
builder/src/core/context.rs 67.03% <100.00%> (+23.03%) ⬆️
builder/src/lib.rs 64.79% <100.00%> (+12.02%) ⬆️
builder/src/merge.rs 71.33% <100.00%> (+71.33%) ⬆️
builder/src/stargz.rs 74.67% <100.00%> (+74.67%) ⬆️
builder/src/core/node.rs 82.47% <99.47%> (+40.93%) ⬆️
builder/src/compact.rs 80.56% <92.49%> (+80.56%) ⬆️

... and 22 files with indirect coverage changes

@hijackthe2 hijackthe2 force-pushed the unit-test branch 2 times, most recently from 1db1a43 to 486b654 Compare November 3, 2023 02:40
Some unit test cases are added for compact.rs, lib.rs, merge.rs, stargz.rs, core/context.rs, and core/node.rs in builder/src to increase code coverage.

Signed-off-by: hijackthe2 <[email protected]>
@jiangliu jiangliu merged commit 240af3e into dragonflyoss:master Nov 3, 2023
24 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