(t testing.TB, nu NetmapUpdater)
| 395 | } |
| 396 | |
| 397 | func 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 | |
| 404 | func (ms *mapSession) netmapForResponse(res *tailcfg.MapResponse) *netmap.NetworkMap { |
| 405 | ms.updateStateFromResponse(res) |
no test coverage detected
searching dependent graphs…