MCPcopy Create free account
hub / github.com/kubernetes/test-infra / copyStringMap

Function copyStringMap

label_sync/main.go:248–254  ·  view source on GitHub ↗
(originalMap map[string]string)

Source from the content-addressed store, hash-verified

246}
247
248func copyStringMap(originalMap map[string]string) map[string]string {
249 newMap := make(map[string]string)
250 for k, v := range originalMap {
251 newMap[k] = v
252 }
253 return newMap
254}
255
256func stringInSortedSlice(a string, list []string) bool {
257 i := sort.SearchStrings(list, a)

Callers 1

validateFunction · 0.85

Calls 1

makeFunction · 0.85

Tested by

no test coverage detected