Skip to content

Question about replace-type #1089

@LandonTClipp

Description

@LandonTClipp

Discussed in #1085

Originally posted by Galabar001 July 3, 2025
replace type is described here: https://vektra.github.io/mockery/latest-v3/replace-type/

The new package path is actually contained in the original example:

package replace_type

import (
    "github.com/vektra/mockery/v3/internal/fixtures/example_project/replace_type/rti/rt1"
    "github.com/vektra/mockery/v3/internal/fixtures/example_project/replace_type/rti/rt2"
)

type RType interface {
    Replace1(f rt1.RType1)
}

Why is that the case? It doesn't seem to be referenced in the original file (and probably wouldn't compile).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions