Add property-based tests for nested-object JSON converters#96
Merged
SeanTAllen merged 1 commit intomainfrom Mar 3, 2026
Merged
Add property-based tests for nested-object JSON converters#96SeanTAllen merged 1 commit intomainfrom
SeanTAllen merged 1 commit intomainfrom
Conversation
Completes discussion #93 item 3: tests for converters that delegate to other converters for nested objects (GitCommitJsonConverter, CommitJsonConverter, IssueJsonConverter). Adds 5 reusable JSON builder helpers (_TestGitPersonJson, _TestCommitFileJson, _TestGitCommitJson, _TestLabelJson, _TestIssuePullRequestJson) that compose to build valid nested JSON structures for testing. 7 new test classes: - GitCommit: preserves-values, missing-field (4 required fields) - Commit: preserves-values with nested files array + git_commit, missing-field (6 required fields) - Issue: preserves-values with nullable state/body + nested user/labels/ pull_request, missing-field (12 required fields), absent-pull-request verifying optional field handling
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.
Completes discussion #93 item 3: tests for converters that delegate to other converters for nested objects (GitCommitJsonConverter, CommitJsonConverter, IssueJsonConverter).
Adds 5 reusable JSON builder helpers (
_TestGitPersonJson,_TestCommitFileJson,_TestGitCommitJson,_TestLabelJson,_TestIssuePullRequestJson) that compose to build valid nested JSON structures for testing.7 new test classes: