Skip to content

test: add unit tests for terway package#861

Merged
BSWANG merged 1 commit intoAliyunContainerService:mainfrom
l1b0k:main
Jul 29, 2025
Merged

test: add unit tests for terway package#861
BSWANG merged 1 commit intoAliyunContainerService:mainfrom
l1b0k:main

Conversation

@l1b0k
Copy link
Collaborator

@l1b0k l1b0k commented Jul 29, 2025

  • Add unit tests for tree implementation in terway-cli
  • Add unit tests for k8s package, including pod existence checks, local pod retrieval, and bandwidth annotations
  • Add unit tests for version package, including version adjustment and command parsing
  • Update existing tests for credential clients and vswitch

- Add unit tests for tree implementation in terway-cli
- Add unit tests for k8s package, including pod existence checks, local pod retrieval, and bandwidth annotations
- Add unit tests for version package, including version adjustment and command parsing
- Update existing tests for credential clients and vswitch

Signed-off-by: l1b0k <libokang.lbk@alibaba-inc.com>
@codecov
Copy link

codecov bot commented Jul 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.97%. Comparing base (94ffaf4) to head (2a4117e).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #861      +/-   ##
==========================================
+ Coverage   35.69%   37.97%   +2.27%     
==========================================
  Files         130      130              
  Lines       18919    18923       +4     
==========================================
+ Hits         6754     7186     +432     
+ Misses      11407    10928     -479     
- Partials      758      809      +51     
Flag Coverage Δ
unittests 37.97% <100.00%> (+2.27%) ⬆️

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

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@BSWANG BSWANG merged commit 8563d94 into AliyunContainerService:main Jul 29, 2025
9 checks passed
cursor bot pushed a commit that referenced this pull request Sep 7, 2025
test: add unit tests for terway package
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