(b *testing.B)
| 173 | } |
| 174 | |
| 175 | func BenchmarkContextWatcherCancellable(b *testing.B) { |
| 176 | cw := ctxwatch.NewContextWatcher(&testHandler{handleCancel: func(context.Context) {}, handleUnwatchAfterCancel: func() {}}) |
| 177 | |
| 178 | ctx := b.Context() |
| 179 | |
| 180 | for b.Loop() { |
| 181 | cw.Watch(ctx) |
| 182 | cw.Unwatch() |
| 183 | } |
| 184 | } |
nothing calls this directly
no test coverage detected