(ctx context.Context, _ *plugin_pb.RunDetectionRequest, sender DetectionSender)
| 449 | } |
| 450 | |
| 451 | func (h *detectionQueueTestHandler) Detect(ctx context.Context, _ *plugin_pb.RunDetectionRequest, sender DetectionSender) error { |
| 452 | select { |
| 453 | case h.detectEntered <- struct{}{}: |
| 454 | default: |
| 455 | } |
| 456 | |
| 457 | select { |
| 458 | case <-ctx.Done(): |
| 459 | return ctx.Err() |
| 460 | case <-h.detectContinue: |
| 461 | } |
| 462 | |
| 463 | return sender.SendComplete(&plugin_pb.DetectionComplete{ |
| 464 | Success: true, |
| 465 | }) |
| 466 | } |
| 467 | |
| 468 | func (h *detectionQueueTestHandler) Execute(context.Context, *plugin_pb.ExecuteJobRequest, ExecutionSender) error { |
| 469 | return nil |
nothing calls this directly
no test coverage detected