Skip to content

Test valid Go import target resolution - #208

Merged
JohnXu22786 merged 1 commit into
mainfrom
bug/c25-08-valid-go-import-r1
Sep 29, 2026
Merged

JohnXu22786 merged 1 commit into
mainfrom
bug/c25-08-valid-go-import-r1

Conversation

@JohnXu22786

Copy link
Copy Markdown
Owner

What this PR does

Before this PR:

The shared Go fixture placed helper.go beside main.go without a module declaration. The imported-function test could therefore pass through global symbol fallback without a resolved proj/helper import target.

After this PR:

The fixture declares the proj module and places helper in its own package directory. The resolver test now requires a non-null import target and checks that both the import target and helper.Greet call resolve to helper/helper.go. Walk and builder expectations follow the relocated fixture.

Type of change

Test

Keep the resolver fixture aligned with Go module boundaries so this test cannot pass through a global symbol fallback alone.
@JohnXu22786
JohnXu22786 marked this pull request as ready for review September 29, 2026 10:32
@JohnXu22786
JohnXu22786 merged commit de59dc9 into main Sep 29, 2026
2 checks passed
@JohnXu22786
JohnXu22786 deleted the bug/c25-08-valid-go-import-r1 branch September 29, 2026 10:32
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