MCPcopy Index your code
hub / github.com/keploy/keploy / cloneStringAnyMap

Function cloneStringAnyMap

pkg/util.go:95–105  ·  view source on GitHub ↗
(src map[string]interface{})

Source from the content-addressed store, hash-verified

93}
94
95func cloneStringAnyMap(src map[string]interface{}) map[string]interface{} {
96 if len(src) == 0 {
97 return map[string]interface{}{}
98 }
99
100 dst := make(map[string]interface{}, len(src))
101 for k, v := range src {
102 dst[k] = v
103 }
104 return dst
105}
106
107func snapshotTemplateState() (map[string]interface{}, map[string]interface{}) {
108 templateValuesMu.RLock()

Callers 2

snapshotTemplateStateFunction · 0.85
SimulateHTTPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected