MCPcopy Index your code
hub / github.com/tailscale/tailscale / TestPathDiscokeyerImplementations

Function TestPathDiscokeyerImplementations

control/controlclient/map_test.go:1952–1964  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1950}
1951
1952func TestPathDiscokeyerImplementations(t *testing.T) {
1953 bus := eventbustest.NewBus(t)
1954 ht := health.NewTracker(bus)
1955 reg := new(usermetric.Registry)
1956 e, err := wgengine.NewFakeUserspaceEngine(t.Logf, 0, ht, reg, bus)
1957 if err != nil {
1958 t.Fatal(err)
1959 }
1960 t.Cleanup(e.Close)
1961 if _, ok := e.(patchDiscoKeyer); !ok {
1962 t.Error("wgengine.userspaceEngine must implement patchDiscoKeyer")
1963 }
1964}
1965
1966func TestPeerIDAndKeyByTailscaleIP(t *testing.T) {
1967 peerKey1 := key.NewNode().Public()

Callers

nothing calls this directly

Calls 6

NewBusFunction · 0.92
NewTrackerFunction · 0.92
NewFakeUserspaceEngineFunction · 0.92
FatalMethod · 0.65
CleanupMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…