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

Function copyStatsMap

interop/xds/client/client.go:116–122  ·  view source on GitHub ↗

copyStatsMap makes a copy of the map.

(originalMap map[string]int32)

Source from the content-addressed store, hash-verified

114
115// copyStatsMap makes a copy of the map.
116func copyStatsMap(originalMap map[string]int32) map[string]int32 {
117 newMap := make(map[string]int32, len(originalMap))
118 for k, v := range originalMap {
119 newMap[k] = v
120 }
121 return newMap
122}
123
124// copyStatsIntMap makes a copy of the map.
125func copyStatsIntMap(originalMap map[int32]int32) map[int32]int32 {

Callers 1

buildRespMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected