Add DT test cases and analysis for drvconn.c bracket parsing#172
Open
jarvis24young wants to merge 2 commits intopostgresql-interfaces:mainfrom
Open
Add DT test cases and analysis for drvconn.c bracket parsing#172jarvis24young wants to merge 2 commits intopostgresql-interfaces:mainfrom
jarvis24young wants to merge 2 commits intopostgresql-interfaces:mainfrom
Conversation
Adds test/src/bracket-parse-test.c (20 test cases covering all branches of the OPENING_BRACKET switch in dconn_get_attributes) and a Chinese analysis document at test/docs/bracket-parse-analysis.md describing the parser's control flow, risk points, and how to run the tests (including ASan/UBSan setups for stability hardening).
Documents the actual branch-coverage results of running bracket-parse-test against a gcov-instrumented psqlodbc driver + local PostgreSQL 16. All 20 TCs pass without crash; 9 of 12 bracket-specific branches hit. B2a / B3a / !equals remain uncovered and are called out for follow-up.
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/src/bracket-parse-test.c (20 test cases covering all branches of the OPENING_BRACKET switch in dconn_get_attributes) and a Chinese analysis document at test/docs/bracket-parse-analysis.md describing the parser's control flow, risk points, and how to run the tests (including ASan/UBSan setups for stability hardening).