feat: initial commit
This commit is contained in:
15
test/testutil/fake_intent_router.go
Normal file
15
test/testutil/fake_intent_router.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user