| 147 | ) |
| 148 | |
| 149 | type 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 | |
| 159 | func UnaryServerInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error) { |
| 160 | ctx = context.WithValue(ctx, &mockKey2{}, "bar") |
nothing calls this directly
no outgoing calls
no test coverage detected