headscale/hscontrol/mapper
Kristoffer Dalby 2d549e579f mapper/batcher: add regression tests for M1, M3, M7 fixes
- TestBatcher_CloseBeforeStart_DoesNotHang: verifies Close() before
  Start() returns promptly now that done is initialized in NewBatcher.

- TestBatcher_QueueWorkAfterClose_DoesNotHang: verifies queueWork
  returns via the done channel after Close(), even without Start().

- TestIsConnected_FalseAfterAddNodeFailure: verifies IsConnected
  returns false after AddNode fails and removes the last connection.

- TestRemoveConnectionAtIndex_NilsTrailingSlot: verifies the backing
  array slot is nil-ed after removal to avoid retaining pointers.

Updates #2545
2026-03-14 02:52:28 -07:00
..
batcher.go mapper/batcher: fix pointer retention, done-channel init, and connected-map races 2026-03-14 02:52:28 -07:00
batcher_bench_test.go mapper: remove Batcher interface, rename to Batcher struct 2026-03-14 02:52:28 -07:00
batcher_concurrency_test.go mapper: remove Batcher interface, rename to Batcher struct 2026-03-14 02:52:28 -07:00
batcher_scale_bench_test.go mapper/batcher: add scale benchmarks 2026-03-14 02:52:28 -07:00
batcher_test.go mapper: remove Batcher interface, rename to Batcher struct 2026-03-14 02:52:28 -07:00
batcher_unit_test.go mapper/batcher: add regression tests for M1, M3, M7 fixes 2026-03-14 02:52:28 -07:00
builder.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
builder_test.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
mapper.go mapper: remove Batcher interface, rename to Batcher struct 2026-03-14 02:52:28 -07:00
mapper_test.go all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00
tail_test.go all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00