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

[YUNIKORN-2765] Improve si_helper & resource funtion's test coverage #881

Closed
wants to merge 2 commits into from

Conversation

SP12893678
Copy link
Contributor

What is this PR for?

Improve the following funtion's test coverage

  • GetTerminationTypeFromString (unknow terminationtype)
  • getMaxResource (requested resource types are fewer than allocated types)
  • GetResource
  • GetTGResource

What type of PR is it?

  • - Test

What is the Jira issue?

https://issues.apache.org/jira/browse/YUNIKORN-2765

@pbacsko pbacsko self-requested a review July 22, 2024 09:16
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.09%. Comparing base (f281908) to head (fc74eb9).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #881      +/-   ##
==========================================
+ Coverage   67.30%   68.09%   +0.78%     
==========================================
  Files          70       70              
  Lines        7625     7625              
==========================================
+ Hits         5132     5192      +60     
+ Misses       2274     2216      -58     
+ Partials      219      217       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@pbacsko pbacsko left a comment

Choose a reason for hiding this comment

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

Some nits

pkg/common/resource_test.go Outdated Show resolved Hide resolved
pkg/common/resource_test.go Outdated Show resolved Hide resolved
pkg/common/si_helper_test.go Outdated Show resolved Hide resolved
@chenyulin0719 chenyulin0719 self-requested a review July 23, 2024 05:08
@SP12893678
Copy link
Contributor Author

Some nits

Sorry, I haved fixed typo problems

Copy link
Contributor

@pbacsko pbacsko left a comment

Choose a reason for hiding this comment

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

+1

@pbacsko pbacsko closed this in 498b8ea Jul 25, 2024
@SP12893678 SP12893678 deleted the YUNIKORN-2765 branch July 29, 2024 12:33
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