You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/util/eventbus/eventbustest
Claus Lensbøl f2f1236ad4
util/eventbus: add test helpers to simplify testing events (#16294)
Instead of every module having to come up with a set of test methods for
the event bus, this handful of test helpers hides a lot of the needed
setup for the testing of the event bus.

The tests in portmapper is also ported over to the new helpers.

Updates #15160

Signed-off-by: Claus Lensbøl <claus@tailscale.com>
6 months ago
..
doc.go util/eventbus: add test helpers to simplify testing events (#16294) 6 months ago
eventbustest.go util/eventbus: add test helpers to simplify testing events (#16294) 6 months ago
eventbustest_test.go util/eventbus: add test helpers to simplify testing events (#16294) 6 months ago
examples_test.go util/eventbus: add test helpers to simplify testing events (#16294) 6 months ago