This pull request enhances the test coverage for the GenerateConfirmCreds function by adding several new test cases. These tests ensure the function's robustness in generating credentials and handling edge cases effectively.
Summary
Added comprehensive tests for the GenerateConfirmCreds function in confirm/confirm_test.go.
Ensured that the generated selector, verifier, and token are not empty and are correctly encoded in base64.
Validated that the selector and verifier correctly match the SHA-512 hash of the respective halves of the decoded token.
Included tests for scenarios where the token generator fails, the token is malformed, or the token has an invalid length after decoding.
Fixes #4.
π Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Description
This pull request enhances the test coverage for the
GenerateConfirmCreds
function by adding several new test cases. These tests ensure the function's robustness in generating credentials and handling edge cases effectively.Summary
GenerateConfirmCreds
function inconfirm/confirm_test.go
.selector
,verifier
, andtoken
are not empty and are correctly encoded in base64.selector
andverifier
correctly match the SHA-512 hash of the respective halves of the decodedtoken
.Fixes #4.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.