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

Function getNodeWithID

tailnet/configmaps_internal_test.go:1264–1273  ·  view source on GitHub ↗
(t testing.TB, peers []*tailcfg.Node, id tailcfg.NodeID)

Source from the content-addressed store, hash-verified

1262}
1263
1264func getNodeWithID(t testing.TB, peers []*tailcfg.Node, id tailcfg.NodeID) *tailcfg.Node {
1265 t.Helper()
1266 for _, n := range peers {
1267 if n.ID == id {
1268 return n
1269 }
1270 }
1271 t.Fatal()
1272 return nil
1273}
1274
1275func requireNeverConfigures(ctx context.Context, t *testing.T, uut *phased) {
1276 t.Helper()

Calls 2

FatalMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected