Skip to content

Add DT test cases and analysis for drvconn.c bracket parsing#172

Open
jarvis24young wants to merge 2 commits intopostgresql-interfaces:mainfrom
jarvis24young:bracket-parse-dt
Open

Add DT test cases and analysis for drvconn.c bracket parsing#172
jarvis24young wants to merge 2 commits intopostgresql-interfaces:mainfrom
jarvis24young:bracket-parse-dt

Conversation

@jarvis24young
Copy link
Copy Markdown

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).

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant