Files
upstream-traggo/test/fake/device.go
upstream-mirror cda7c1a474
Some checks failed
build / build (push) Failing after 3s
snapshot of https://github.com/traggo/server.git (master, 2026-09-16; blobs > 131072B omitted)
2026-09-16 05:24:45 +05:00

14 lines
261 B
Go

package fake
import (
"context"
"github.com/traggo/server/auth"
"github.com/traggo/server/model"
)
// Device creates a context with a fake device.
func Device(device *model.Device) context.Context {
return auth.WithDevice(context.Background(), device)
}