Skip to content

Expand hover integration tests#5107

Merged
orien merged 1 commit intomainfrom
pony-lsp-test
Apr 4, 2026
Merged

Expand hover integration tests#5107
orien merged 1 commit intomainfrom
pony-lsp-test

Conversation

@orien
Copy link
Copy Markdown
Member

@orien orien commented Apr 4, 2026

Context

The hover integration tests cover top-level entity declarations but do not exercise field declarations, field usages, function parameter declarations, parameter usages, or positions where hover should return nothing.

Changes

  • Adds field declaration and usage checks to the class test (let, var, embed fields)
  • Adds parameter declaration and usage checks to the function test
  • Adds empty-result assertions for docstring and blank-line positions in the class test
  • Extends _HoverWorkspaceServer to treat an empty expected array as "assert no hover result returned"

Implements: #5106 (comment)

Adds field declarations and usages to the class test, parameter
declarations and usages to the function test, and empty-result checks
for docstrings and blank lines. Extends _HoverWorkspaceServer to handle
empty expected arrays as assertions that no hover result is returned.
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Apr 4, 2026
@orien orien merged commit a2f9a79 into main Apr 4, 2026
15 checks passed
@orien orien deleted the pony-lsp-test branch April 4, 2026 04:09
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Apr 4, 2026
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.

2 participants