noopProfileCollector avoids calling process-global runtime functions (CPU profiler, tracer) so that tests can run in parallel safely.
| 380 | // noopProfileCollector avoids calling process-global runtime functions |
| 381 | // (CPU profiler, tracer) so that tests can run in parallel safely. |
| 382 | type noopProfileCollector struct{} |
| 383 | |
| 384 | func (noopProfileCollector) StartCPUProfile(io.Writer) (func(), error) { return func() {}, nil } |
| 385 | func (noopProfileCollector) StartTrace(io.Writer) (func(), error) { return func() {}, nil } |
nothing calls this directly
no outgoing calls
no test coverage detected