Skip to content

Conversation

heaths
Copy link
Member

@heaths heaths commented Oct 17, 2025

Based on feedback from #3214

Based on feedback from Azure#3214
@Copilot Copilot AI review requested due to automatic review settings October 17, 2025 00:27
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 for the base64 encoding/decoding functionality in the typespec_client_core crate. The tests validate both standard and URL-safe base64 variants, including edge cases and serde integration.

Key changes:

  • Added a test module with 16 test functions covering encoding, decoding, roundtrip operations, and serde integration
  • Tests validate both standard and URL-safe base64 variants with optional value handling
  • Includes edge case testing for empty inputs, single characters, and invalid input handling

@github-actions github-actions bot added the Azure.Core The azure_core crate label Oct 17, 2025
Copy link
Member

@LarryOsterman LarryOsterman left a comment

Choose a reason for hiding this comment

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

Approving, because all tests are better than no tests (and these tests seem to be reasonably decent).

However there is a hole in the tests that you might consider fixing.

Thought of a few other negative cases while I was at it.
@heaths heaths merged commit 20e9c13 into Azure:main Oct 17, 2025
17 checks passed
@heaths heaths deleted the base64-tests branch October 17, 2025 20:44
Copy link

@JaclynCodes JaclynCodes left a comment

Choose a reason for hiding this comment

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

👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Azure.Core The azure_core crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants