MCPcopy
hub / github.com/etcd-io/etcd / templateEndpoints

Function templateEndpoints

tests/integration/grpc_test.go:142–152  ·  view source on GitHub ↗
(t *testing.T, pattern string, clus *integration.Cluster)

Source from the content-addressed store, hash-verified

140}
141
142func templateEndpoints(t *testing.T, pattern string, clus *integration.Cluster) []string {
143 t.Helper()
144 var endpoints []string
145 for _, m := range clus.Members {
146 ent := pattern
147 ent = strings.ReplaceAll(ent, "${MEMBER_PORT}", m.GRPCPortNumber())
148 ent = strings.ReplaceAll(ent, "${MEMBER_NAME}", m.Name)
149 endpoints = append(endpoints, ent)
150 }
151 return endpoints
152}
153
154func templateAuthority(t *testing.T, pattern string, m *integration.Member) string {
155 t.Helper()

Callers 1

setupClientFunction · 0.70

Calls 2

GRPCPortNumberMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…