MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / mockServer

Struct mockServer

pkg/rpcserver/rpcserver_test.go:149–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147)
148
149type mockServer struct {
150 ttnpb.UnimplementedAppAsServer
151
152 pushCtx context.Context
153 pushReq *ttnpb.DownlinkQueueRequest
154
155 subCtx context.Context
156 subIDs *ttnpb.ApplicationIdentifiers
157}
158
159func UnaryServerInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error) {
160 ctx = context.WithValue(ctx, &mockKey2{}, "bar")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected