Skip to content

Mockery v3 Generates invalid code for private types #1092

@sonalys

Description

@sonalys

Description

I have a package with a private interface and types
My configuration is set to generate the mocks on a different package name
Mockery will generate the mock for the private interface and reference a private type, which is invalid

Expected behavior

Either:

  • Configurable option to ignore private interfaces / types
  • Mockery detects mocks are generated on a different package and ignores private interfaces / types

Mockery version

v3

Installation Mechanism

  • go get
  • [] Pre-built release
  • [] homebrew
  • [] Other: [please describe]

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