#277 Strengthen nested-path tests with HasNextSyntaxNode assertions - #279
Merged
sanelli merged 3 commits intoJul 19, 2026
Conversation
Document that Mappa.Generator.Tests must assert generated syntax via HasNextSyntaxNode and must not use string-containment checks on generated source text. Co-authored-by: Cursor <cursoragent@cursor.com>
…rtions. Replace generated-source string checks with structured Roslyn syntax walks, and add conditional-access and throw-expression assertion helpers. Co-authored-by: Cursor <cursoragent@cursor.com>
CI requires an alpha increment for the nested-path HasNextSyntaxNode test strengthening. Co-authored-by: Cursor <cursoragent@cursor.com>
5 tasks
5 tasks
sanelli
deleted the
277-strengthen-nested-path-generator-tests-with-full-hasnextsyntaxnode-assertions
branch
July 19, 2026 17:21
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.
Summary
HasSyntaxNodesCount/HasNextSyntaxNode(no string containment on generated source).BeConditionalAccessExpressionSyntaxandBeThrowExpressionSyntaxassertion helpers (and nestedBeAssignToContextStatementpath support).MappaVersionto10.2.0-alpha.11for CI.Test plan
.\Scripts\RunTestsAndReportCoverage.ps1— 2392 passed; coverage matches baseline (line 97.5%, branch 90.5%, method 95.4%)Closes #277