Question about replace-type #1085
Unanswered
Galabar001
asked this question in
Q&A
Replies: 1 comment
-
|
I think that's a mistake in the docs. If you look at the original fixture used to test this feature: https://github.com/vektra/mockery/blob/v3/internal/fixtures/example_project/replace_type/rt.go It looks like: 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)
Replace2(f rt2.RType2)
}I'll need to update the docs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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:
Why is that the case? It doesn't seem to be referenced in the original file (and probably wouldn't compile).
Beta Was this translation helpful? Give feedback.
All reactions