Skip to content

private types used in mocks generated with mockgen v0.5.2 #252

@camaeel

Description

@camaeel

Actual behavior A clear and concise description of what the bug is.

With version 0.5.2, running mockgen -destination=./mocks/mock_playwright_page.go github.com/playwright-community/playwright-go Page generates mock file containing private type (handler playwright.routeHandler) in parameters of functions: Route and Unroute.

Expected behavior A clear and concise description of what you expected to
happen.

Running the same command with version 0.5.1 doesn't use private types in generated mock.

To Reproduce Steps to reproduce the behavior

  1. go get -t go.uber.org/mock/mockgen@v0.5.2
  2. go install go.uber.org/mock/mockgen@v0.5.2
  3. mockgen -destination=./mocks/mock_playwright_page.go github.com/playwright-community/playwright-go Page

Additional Information

  • gomock mode (reflect or source): ???
  • gomock version or git ref: v0.5.2
  • golang version: 1.24.2

Triage Notes for the Maintainers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions