Add test coverage for semicolon handling in description text evaluation#67
Add test coverage for semicolon handling in description text evaluation#67
Conversation
|
@copilot let's try working on this again |
- Validate primary key value is not empty/nil after semicolon splitting - Strip whitespace from primary key value after splitting - Skip empty parts from trailing/consecutive semicolons - Add test fixtures and test cases for edge cases Co-authored-by: northrup <11050+northrup@users.noreply.github.com>
I've implemented the input sanitization for semicolons in the text evaluation in commit f463b20. The changes add validation in the
Added 3 test fixtures and corresponding test cases. All 528 unit tests pass with 100% code coverage. |
|
@copilot The condition we're looking to guard against is a semicolon in the description free-form text area where someone is writing a narrative. |
Revert parsed_predicate changes and instead add tests ensuring semicolons in the description free-form text area are preserved correctly and not treated as predicate separators. Co-authored-by: northrup <11050+northrup@users.noreply.github.com>
Refocused the changes in 0d11eab. Reverted the
All 528 tests pass with 100% coverage. |
Adds test coverage ensuring semicolons in the description free-form text area are properly handled during text file evaluation in
text.rb.Problem
The description field is a free-form text area where users write narrative text that may contain semicolons. The
parsed_datamethod intext.rbguards against this by bypassingparsed_predicatefor description values (line 297:if key == "description"), but this behavior lacked direct test coverage through the#descriptionmethod.Changes Made
descriptionmethod returns the full string including semicolons for narrative descriptions (e.g.,"This group manages auth; it also handles access control for the team")description = This group provides access to resources; expiration = 2099-12-31 is not a predicate here), verifying it's stored as-is and not extracted as a predicatedescription-with-semicolon-narrative.txtanddescription-with-predicate-like-semicolon.txtTesting
Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.