16 lines
304 B
Go
16 lines
304 B
Go
package testutil
|
|
|
|
import (
|
|
"context"
|
|
"github.com/paramah/gw_telegram/internal/domain/entity"
|
|
)
|
|
|
|
type FakeIntentRouter struct {
|
|
RouteResult entity.Route
|
|
Error error
|
|
}
|
|
|
|
func (f *FakeIntentRouter) Route(_ context.Context, _ entity.Message) (entity.Route, error) {
|
|
return f.RouteResult, f.Error
|
|
}
|