Skip to content

test(AL deps): prove comments and literals cannot become dependency sites - #2

Draft
Sir-J-AU wants to merge 1 commit into
mainfrom
test/al-dependency-masking-20260817
Draft

test(AL deps): prove comments and literals cannot become dependency sites#2
Sir-J-AU wants to merge 1 commit into
mainfrom
test/al-dependency-masking-20260817

Conversation

@Sir-J-AU

Copy link
Copy Markdown
Owner

Validation-first planted negative for AL dependency-matrix false positives.

Exactly one file: tests/ALDependencyMatrix.FalsePositive.Safety.Tests.ps1.

The current walker skips comment-only lines but regexes the remaining raw line, so inline comments and string literals can potentially be reported as real AL dependency sites. The fixture contains one genuine Record "Item" reference plus fake Record, Database::, TableRelation, and SourceTable patterns inside comments/string literals.

Required invariant: the real Item reference remains visible, while non-code text produces zero dependency rows.

This PR changes tests only. Expected RED from source inspection is not observed RED until executed on an admitted runner. No production repair, merge, AL compile, BC runtime, database, service, or tenant action is authorized.

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