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

test(scheduler/resource): add host, peer and task uint tests #3790

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gaius-qi
Copy link
Member

Description

This pull request includes several changes to the scheduler/resource/persistentcache package, adding new tests for the Host, Peer, and Task components, and updating dependencies in the go.mod file. The most important changes include the addition of comprehensive test cases for Host, Peer, and Task structs, as well as the inclusion of new dependencies for Redis and Redis mock.

Test Additions:

Dependency Updates:

  • go.mod: Added new dependencies for github.com/go-redis/redis and github.com/go-redis/redismock.

Related Issue

Motivation and Context

Screenshots (if appropriate)

Types of changes

  • 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

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@gaius-qi gaius-qi added the enhancement New feature or request label Jan 27, 2025
@gaius-qi gaius-qi added this to the v2.3.0 milestone Jan 27, 2025
@gaius-qi gaius-qi self-assigned this Jan 27, 2025
@gaius-qi gaius-qi requested a review from a team as a code owner January 27, 2025 05:45
Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 34.26%. Comparing base (b2105b5) to head (2400900).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3790      +/-   ##
==========================================
+ Coverage   34.19%   34.26%   +0.06%     
==========================================
  Files         337      337              
  Lines       38982    38982              
==========================================
+ Hits        13330    13357      +27     
+ Misses      24811    24777      -34     
- Partials      841      848       +7     
Flag Coverage Δ
unittests 34.26% <ø> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 6 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants