Files
masyunis/lib/thoth/thothmock/withthothmock.go
T
2026-05-01 13:50:38 +00:00

18 lines
295 B
Go

package thothmock
import (
"context"
"testing"
"github.com/TecharoHQ/anubis/lib/thoth"
)
func WithMockThoth(t *testing.T) context.Context {
t.Helper()
thothCli := &thoth.Client{}
thothCli.WithIPToASNService(MockIpToASNService())
ctx := thoth.With(t.Context(), thothCli)
return ctx
}