Skip to content

Commit

Permalink
Struct is inlined
Browse files Browse the repository at this point in the history
  • Loading branch information
max-melentyev committed Nov 22, 2024
1 parent 359f678 commit ee08ac9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
5 changes: 5 additions & 0 deletions lib/struct.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package lib

type S struct {
A int
}
9 changes: 8 additions & 1 deletion p/iface.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
package p

import (
"mockery-issue/lib"
)

type T = int
type S = lib.S

//go:generate mockery --quiet --name I
type I interface{ F(T) }
type I interface {
F(T, S, lib.S)
}
12 changes: 8 additions & 4 deletions p/mocks/I.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ee08ac9

Please sign in to comment.