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

Function testDiscoKey

types/netmap/netmap_test.go:27–37  ·  view source on GitHub ↗
(hexPrefix string)

Source from the content-addressed store, hash-verified

25}
26
27func testDiscoKey(hexPrefix string) (ret key.DiscoPublic) {
28 b, err := hex.DecodeString(hexPrefix)
29 if err != nil {
30 panic(err)
31 }
32 // this function is used with short hexes, so zero-extend the raw
33 // value.
34 var bs [32]byte
35 copy(bs[:], b)
36 return key.DiscoPublicFromRaw32(mem.B(bs[:]))
37}
38
39func nodeViews(v []*tailcfg.Node) []tailcfg.NodeView {
40 nv := make([]tailcfg.NodeView, len(v))

Callers 1

TestConciseDiffFromFunction · 0.85

Calls 1

DiscoPublicFromRaw32Function · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…