Skip to content

test: cover qualified function calls with three segments#448

Open
hjotha wants to merge 2 commits intomendixlabs:mainfrom
hjotha:submit/qualified-function-call-regression-tests
Open

test: cover qualified function calls with three segments#448
hjotha wants to merge 2 commits intomendixlabs:mainfrom
hjotha:submit/qualified-function-call-regression-tests

Conversation

@hjotha
Copy link
Copy Markdown
Contributor

@hjotha hjotha commented Apr 30, 2026

Closes #447.

Summary

  • Update the qualified-call visitor regression to use a synthetic three-segment callee.
  • Add a parser-level bug-test MDL file for the same IF-condition form.
  • Remove the real project-style name from this test fixture while touching the coverage.

Validation

  • make build
  • go test ./mdl/visitor -run 'TestQualifiedCallInIfCondition|TestQualifiedCallPositionalArgs' -v
  • ./bin/mxcli check mdl-examples/bug-tests/qualified-function-call-expression.mdl
  • make test
  • make lint-go

Symptom: the qualified function call regression coverage only asserted a two-segment callee and left the bug-test coverage implicit.

Root cause: the expression parser fix accepts qualifiedName callees, including three-segment names, but the tests did not pin that shape directly.

Fix: update the visitor regression to use a synthetic three-segment callee and add a parser-level bug-test MDL file that checks the same IF-condition form.

Tests: ran make build, targeted mdl/visitor qualified-call tests, mxcli check for the bug-test MDL file, make test, and make lint-go.
@ako ako added this to the v0.8.0 milestone Apr 30, 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.

Qualified function call tests should cover three-segment callees

3 participants