(id int)
| 1251 | } |
| 1252 | |
| 1253 | func 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 | |
| 1264 | func getNodeWithID(t testing.TB, peers []*tailcfg.Node, id tailcfg.NodeID) *tailcfg.Node { |
| 1265 | t.Helper() |
no outgoing calls
no test coverage detected