test: add 12 unit tests for git-extractor parseGitOutput - #83
Closed
TerminalGravity wants to merge 1 commit into
Closed
test: add 12 unit tests for git-extractor parseGitOutput#83TerminalGravity wants to merge 1 commit into
TerminalGravity wants to merge 1 commit into
Conversation
- Export parseGitOutput for direct testing - Test single/multi commit parsing, stat extraction, body inclusion - Test edge cases: empty input, missing hash, malformed blocks - Test truncation of long subjects, unique ID generation, timezone handling - All 55 tests pass (12 new + 43 existing)
Collaborator
Author
|
12 tests for git-extractor parseGitOutput — good coverage of edge cases. CI green. ✅ |
TerminalGravity
commented
Mar 4, 2026
TerminalGravity
left a comment
Collaborator
Author
There was a problem hiding this comment.
Solid coverage for parseGitOutput — 12 tests hitting edge cases (empty output, malformed lines, binary files). ✅
Collaborator
Author
|
Superseded by newer, more comprehensive test PRs. |
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.
Adds test coverage for the
parseGitOutputfunction ingit-extractor.ts— previously untested.Changes:
parseGitOutputfor direct unit testingAll 55 tests pass (12 new + 43 existing).