MCPcopy
hub / github.com/grpc/grpc-go / setTestAttrEndpoint

Function setTestAttrEndpoint

balancer/ringhash/ringhash_test.go:691–694  ·  view source on GitHub ↗
(endpoint resolver.Endpoint, content string)

Source from the content-addressed store, hash-verified

689}
690
691func setTestAttrEndpoint(endpoint resolver.Endpoint, content string) resolver.Endpoint {
692 endpoint.Attributes = endpoint.Attributes.WithValue(testKey, testAttribute{content})
693 return endpoint
694}
695
696// TestAddrBalancerAttributesChange tests the case where the ringhash balancer
697// receives a ClientConnUpdate with the same config and addresses as received in

Callers 1

Calls 1

WithValueMethod · 0.80

Tested by

no test coverage detected