Skip to content

add method check to pkgScanner.selectorExpr#24

Merged
bobg merged 3 commits into
bobg:mainfrom
mattkasun:methods
Nov 29, 2025
Merged

add method check to pkgScanner.selectorExpr#24
bobg merged 3 commits into
bobg:mainfrom
mattkasun:methods

Conversation

@mattkasun

Copy link
Copy Markdown
Contributor

update test to check for methods

fixes #23

update test to check for methods
@coveralls

coveralls commented Nov 27, 2025

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 19779305446

Details

  • 16 of 16 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 68.095%

Totals Coverage Status
Change from base Build 19776351933: 0.3%
Covered Lines: 858
Relevant Lines: 1260

💛 - Coveralls

@bobg

bobg commented Nov 29, 2025

Copy link
Copy Markdown
Owner

Not sure why this is failing; permissions are set up correctly AFAICT. However, to make doubly sure, please pull the latest commit into your PR branch. Never mind, I did it.

Comment thread _testdata/17/foo.go Outdated
func seventeen() {
x := []int{7, 8}
y := (*[2]int)(x)
time.Now().GoString()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The other code in this file already forces Mingo to compute version 1.17. Adding this call to time.Now().GoString() makes no difference, whether the relevant logic works or doesn't work.

The right way to test this is to put it in its own file (which I've done with bar.go). The presence of time.Now().GoString() should force Mingo to compute version 17 all by itself. I've confirmed that with your fix in place, it does, and without your fix, it doesn't.

@bobg bobg left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

LGTM. Thank you very much!

The problem with Modver being unable to write its comment to this pull request (as part of the GitHub Actions checks) should not block this from merging.

@bobg bobg merged commit c1c6219 into bobg:main Nov 29, 2025
1 check failed
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.

sync.WaitGroup.Go(func()) not detected

3 participants