test(engine): add unit tests for commit metadata extraction#6382
Open
sachin9058 wants to merge 5 commits into
Open
test(engine): add unit tests for commit metadata extraction#6382sachin9058 wants to merge 5 commits into
sachin9058 wants to merge 5 commits into
Conversation
Signed-off-by: Sachin Kumar <sachinkumar905846@gmail.com>
Contributor
Author
|
This PR builds on the commit metadata extraction work in #6380 and focuses on adding test coverage for that functionality. |
This was referenced Apr 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds unit tests for the commit metadata extraction logic introduced in the commitinfo package.
It builds on the commit iteration and metadata abstraction work introduced in #6380 , and focuses on validating that commit data is correctly normalized into a provider-agnostic structure.
The tests verify extraction of key fields such as SHA, commit message (first line), and author name. Additionally, edge cases such as empty commit objects are covered to ensure robustness.
This change is scoped to testing only and does not introduce any functional changes.
Fixes #2176
Testing
go test ./...