mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00

Add HTTP adapter API tests. Fix Manager API tests. Signed-off-by: Aleksandar Novakovic <anovakovic01@gmail.com>
17 lines
345 B
Go
17 lines
345 B
Go
package mocks
|
|
|
|
import "github.com/mainflux/mainflux"
|
|
|
|
var _ (mainflux.MessagePublisher) = (*mockPublisher)(nil)
|
|
|
|
type mockPublisher struct{}
|
|
|
|
// NewPublisher returns mock message publisher.
|
|
func NewPublisher() mainflux.MessagePublisher {
|
|
return mockPublisher{}
|
|
}
|
|
|
|
func (pub mockPublisher) Publish(msg mainflux.RawMessage) error {
|
|
return nil
|
|
}
|