Skip to content

Conversation

patrick-ogrady
Copy link
Contributor

No description provided.

@patrick-ogrady patrick-ogrady marked this pull request as ready for review May 29, 2025 21:41
@patrick-ogrady patrick-ogrady changed the title [codec] Increase varint Coverage [codec] Explicitly Test Varint Edge Cases May 29, 2025
@patrick-ogrady patrick-ogrady requested a review from Copilot May 29, 2025 21:47
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@patrick-ogrady patrick-ogrady marked this pull request as draft May 29, 2025 21:49
@patrick-ogrady patrick-ogrady changed the title [codec] Explicitly Test Varint Edge Cases [codec] Add More Varint Coverage May 29, 2025
@patrick-ogrady patrick-ogrady marked this pull request as ready for review May 29, 2025 21:56
@patrick-ogrady patrick-ogrady requested a review from Copilot May 29, 2025 22:01
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive test coverage to the varint codec implementation by exhaustively verifying encoding and decoding for u16/i16 values and testing boundary cases for values with specific bit patterns.

  • Adds exhaustive tests for every possible u16 and i16 value.
  • Implements tests for exact bit boundaries and single bit boundary cases across multiple integer types.

@patrick-ogrady patrick-ogrady merged commit 952fd63 into main May 29, 2025
14 of 15 checks passed
@patrick-ogrady patrick-ogrady deleted the varint-coverage branch May 29, 2025 23:04
Copy link

codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 89.28571% with 9 lines in your changes missing coverage. Please review.

Project coverage is 90.95%. Comparing base (f932db2) to head (5e29a5b).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
codec/src/varint.rs 89.28% 9 Missing ⚠️
@@            Coverage Diff             @@
##             main    #1026      +/-   ##
==========================================
- Coverage   90.96%   90.95%   -0.01%     
==========================================
  Files         191      191              
  Lines       53587    53671      +84     
==========================================
+ Hits        48743    48818      +75     
- Misses       4844     4853       +9     
Files with missing lines Coverage Δ
codec/src/varint.rs 96.92% <89.28%> (-3.08%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f932db2...5e29a5b. Read the comment docs.

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

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