Skip to content

unified: Add inline expectation test library#22090

Merged
asgerf merged 2 commits into
github:mainfrom
asgerf:unified/inline-test-expectations
Jun 30, 2026
Merged

unified: Add inline expectation test library#22090
asgerf merged 2 commits into
github:mainfrom
asgerf:unified/inline-test-expectations

Conversation

@asgerf

@asgerf asgerf commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

I was going to add this alongside local scoping, but it's looking like it might be needed for other work first, so I thought we might as well get this in here.

@asgerf asgerf added the no-change-note-required This PR does not need a change note label Jun 30, 2026
@asgerf asgerf marked this pull request as ready for review June 30, 2026 13:40
@asgerf asgerf requested a review from a team as a code owner June 30, 2026 13:40
Copilot AI review requested due to automatic review settings June 30, 2026 13:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces the Unified-language wrappers needed to use the shared inline-expectations test-postprocessing framework with Unified extractor locations and comments.

Changes:

  • Adds a Unified-specific InlineExpectationsTestImpl implementation mapping expectations to Unified comments/locations.
  • Adds a @kind test-postprocess query (InlineExpectationsTestQuery.ql) wiring the shared postprocessing with a Unified Input module.
  • Adds a small public-facing InlineExpectationsTest.qll entry point exporting Make<Impl> for Unified tests.
Show a summary per file
File Description
unified/ql/lib/utils/test/internal/InlineExpectationsTestImpl.qll Implements the Unified-specific InlineExpectationsTestSig adapter (comments + location type).
unified/ql/lib/utils/test/InlineExpectationsTestQuery.ql Defines the Unified postprocess query entry point and relative-url formatting.
unified/ql/lib/utils/test/InlineExpectationsTest.qll Provides a convenience import/export wrapper for Unified inline expectation tests.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread unified/ql/lib/utils/test/internal/InlineExpectationsTestImpl.qll Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@tausbn tausbn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable. 👍

@asgerf asgerf merged commit 11e75c1 into github:main Jun 30, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants