test: fix mock generation
This commit is contained in:
parent
adef9b1eb4
commit
6a474c92dc
|
@ -6,7 +6,7 @@ import (
|
|||
"github.com/vmihailenco/msgpack/v5"
|
||||
)
|
||||
|
||||
//go:generate mockgen -source=incoming_message.go -destination=../mocks/base/incoming_message.go -package=base
|
||||
//go:generate mockgen -source=base.go -destination=../mocks/base/base.go -package=base
|
||||
|
||||
type IncomingMessage interface {
|
||||
HandleMessage(node interfaces.Node, peer net.Peer, verifyId bool) error
|
||||
|
|
|
@ -6,6 +6,8 @@ var (
|
|||
_ EncodeableMessage = (*EncodeableMessageImpl)(nil)
|
||||
)
|
||||
|
||||
//go:generate mockgen -source=encodeable_message.go -destination=../mocks/base/encodeable_message.go -package=base
|
||||
|
||||
type EncodeableMessage interface {
|
||||
ToMessage() (message []byte, err error)
|
||||
msgpack.CustomEncoder
|
||||
|
|
|
@ -10,6 +10,8 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
//go:generate mockgen -source=incoming_message.go -destination=../../mocks/base/incoming_message.go -package=base
|
||||
|
||||
var _ msgpack.CustomDecoder = (*IncomingMessageImpl)(nil)
|
||||
var _ IncomingMessage = (*IncomingMessageImpl)(nil)
|
||||
var _ IncomingMessageTyped = (*IncomingMessageImpl)(nil)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package base
|
||||
|
||||
//go:generate mockgen -source=signed.go -destination=../../mocks/base/signed.go -package=base -aux_files=git.lumeweb.com/LumeWeb/libs5-go/protocol/base=base.go
|
||||
|
||||
type SignedIncomingMessage interface {
|
||||
IncomingMessage
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue