(t testing.TB)
| 34 | ) |
| 35 | |
| 36 | func stubSinkRegistry(t testing.TB) *sinkRegistry { |
| 37 | origSinkRegistry := _sinkRegistry |
| 38 | t.Cleanup(func() { |
| 39 | _sinkRegistry = origSinkRegistry |
| 40 | }) |
| 41 | |
| 42 | r := newSinkRegistry() |
| 43 | _sinkRegistry = r |
| 44 | return r |
| 45 | } |
| 46 | |
| 47 | func TestRegisterSink(t *testing.T) { |
| 48 | stubSinkRegistry(t) |
no test coverage detected