MCPcopy
hub / github.com/tailscale/tailscale / newTestMapSession

Function newTestMapSession

control/controlclient/map_test.go:397–402  ·  view source on GitHub ↗
(t testing.TB, nu NetmapUpdater)

Source from the content-addressed store, hash-verified

395}
396
397func newTestMapSession(t testing.TB, nu NetmapUpdater) *mapSession {
398 ms := newMapSession(key.NewNode(), nu, new(controlknobs.Knobs))
399 t.Cleanup(ms.Close)
400 ms.logf = t.Logf
401 return ms
402}
403
404func (ms *mapSession) netmapForResponse(res *tailcfg.MapResponse) *netmap.NetworkMap {
405 ms.updateStateFromResponse(res)

Calls 3

NewNodeFunction · 0.92
newMapSessionFunction · 0.85
CleanupMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…