MCPcopy Index your code
hub / github.com/coder/coder / newTestNode

Function newTestNode

tailnet/configmaps_internal_test.go:1253–1262  ·  view source on GitHub ↗
(id int)

Source from the content-addressed store, hash-verified

1251}
1252
1253func newTestNode(id int) *Node {
1254 return &Node{
1255 ID: tailcfg.NodeID(id),
1256 AsOf: time.Date(2024, 1, 7, 12, 13, 14, 15, time.UTC),
1257 Key: key.NewNode().Public(),
1258 DiscoKey: key.NewDisco().Public(),
1259 Endpoints: []string{"192.168.0.55"},
1260 PreferredDERP: id,
1261 }
1262}
1263
1264func getNodeWithID(t testing.TB, peers []*tailcfg.Node, id tailcfg.NodeID) *tailcfg.Node {
1265 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected