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(proto): add unit tests for metadata descriptors #919

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

Conversation

ijsong
Copy link
Member

@ijsong ijsong commented Nov 24, 2024

What this PR does

  • Add tests for StorageNodeMetadataDescriptor and LogStreamReplicaMetadataDescriptor
  • Test methods: ToStorageNodeDescriptor, GetLogStream, Head, and Tail
  • Ensure proper coverage for edge cases and nil values

@ijsong ijsong requested a review from hungryjang as a code owner November 24, 2024 10:25
Copy link

codecov bot commented Nov 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.11%. Comparing base (703a233) to head (f86dca4).

Additional details and impacted files
@@                      Coverage Diff                       @@
##           refactor_snmd_getlogstream     #919      +/-   ##
==============================================================
+ Coverage                       79.00%   79.11%   +0.10%     
==============================================================
  Files                             180      180              
  Lines                           21615    21615              
==============================================================
+ Hits                            17078    17100      +22     
+ Misses                           3720     3695      -25     
- Partials                          817      820       +3     

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

@ijsong ijsong force-pushed the unit_tests_for_metadata_descriptors branch from 18fcbc4 to 2f9a7c7 Compare November 24, 2024 13:57
@ijsong ijsong force-pushed the refactor_snmd_getlogstream branch from a0af1e1 to 35530c6 Compare December 13, 2024 01:53
@ijsong ijsong force-pushed the unit_tests_for_metadata_descriptors branch from 2f9a7c7 to 4c8ea0a Compare December 13, 2024 01:53
@ijsong ijsong force-pushed the refactor_snmd_getlogstream branch from 35530c6 to a84aa13 Compare December 13, 2024 02:01
@ijsong ijsong force-pushed the unit_tests_for_metadata_descriptors branch from 4c8ea0a to b189424 Compare December 13, 2024 02:01
- Add tests for StorageNodeMetadataDescriptor and LogStreamReplicaMetadataDescriptor
- Test methods: ToStorageNodeDescriptor, GetLogStream, Head, and Tail
- Ensure proper coverage for edge cases and nil values
@ijsong ijsong force-pushed the refactor_snmd_getlogstream branch from a84aa13 to 703a233 Compare January 16, 2025 04:19
@ijsong ijsong force-pushed the unit_tests_for_metadata_descriptors branch from b189424 to f86dca4 Compare January 16, 2025 04:19
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.

1 participant