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
M. J. Fromberger 6992f958fc
util/eventbus: add an EqualTo helper for testing (#17178)
For a common case of events being simple struct types with some exported
fields, add a helper to check (reflectively) for equal values using cmp.Diff so
that a failed comparison gives a useful diff in the test output.

More complex uses will still want to provide their own comparisons; this
(intentionally) does not export diff options or other hooks from the cmp
package.

Updates #15160

Change-Id: I86bee1771cad7debd9e3491aa6713afe6fd577a6
Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
3 months ago
..
assets util/eventbus: add a debug HTTP handler for the bus 10 months ago
debug-demo util/eventbus: add a helper program for bus development 10 months ago
eventbustest util/eventbus: add an EqualTo helper for testing (#17178) 3 months ago
bench_test.go util/eventbus: add basic throughput benchmarks (#15284) 10 months ago
bus.go util/eventbus: fix docstrings (#16401) 6 months ago
bus_test.go util/eventbus: add a Done channel to the Client (#17118) 3 months ago
client.go util/eventbus: add a Done channel to the Client (#17118) 3 months ago
debug.go client/local,cmd/tailscale/cli,ipn/localapi: expose eventbus graph (#16597) 5 months ago
debughttp.go util/eventbus: add ts_omit_debugeventbus 4 months ago
debughttp_off.go util/eventbus: add ts_omit_debugeventbus 4 months ago
doc.go util/eventbus: add test helpers to simplify testing events (#16294) 6 months ago
fetch-htmx.go util/eventbus: add a debug HTTP handler for the bus 10 months ago
publish.go util/eventbus: remove redundant code from eventbus.Publish 6 months ago
queue.go util/eventbus: make internal queue a generic type 10 months ago
subscribe.go util/eventbus: remove redundant code from eventbus.Publish 6 months ago