aglinxinyuan opened a new pull request, #6136:
URL: https://github.com/apache/texera/pull/6136

   ### What changes were proposed in this PR?
   
   Extends `PythonLexerUtilsSpec` in `common/pybuilder` to cover the remaining 
uncovered branches of `PythonLexerUtils.updateTripleQuotedStringState`, which 
Codecov flags as missed/partial:
   
   - an escaped quote inside an ordinary single- or double-quoted string is not 
treated as a string boundary (the backslash-sets-escaped and 
escaped-consumes-next branches);
   - a lone single-quoted string toggles single-quote mode on and off;
   - a `#` inside a double-quoted string is not treated as a comment (the 
comment guard is skipped while inside a string).
   
   No production code is changed; this is test-only.
   
   ### Any related issues, documentation, discussions?
   
   Coverage gaps identified from the Codecov report for `apache/texera`.
   
   ### How was this PR tested?
   
   Extended ScalaTest spec, run locally:
   
   ```
   sbt "PyBuilder/testOnly *PythonLexerUtilsSpec"
   ```
   
   All 37 pass. `scalafmt` and `scalafixAll --check` are clean.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8 [1M context])
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to