MCPcopy
hub / github.com/keploy/keploy / buildTemplateDataSnapshot

Function buildTemplateDataSnapshot

pkg/util.go:114–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114func buildTemplateDataSnapshot() map[string]interface{} {
115 templatedValues, secretValues := snapshotTemplateState()
116 if len(templatedValues) == 0 && len(secretValues) == 0 {
117 return map[string]interface{}{}
118 }
119
120 templateData := make(map[string]interface{}, len(templatedValues)+1)
121 for k, v := range templatedValues {
122 templateData[k] = v
123 }
124 if len(secretValues) > 0 {
125 templateData["secret"] = secretValues
126 }
127
128 return templateData
129}
130
131func UpdateSortCounterIfHigher(val int64) {
132 for {

Callers 2

SimulateGRPCFunction · 0.85
prepareHTTPRequestFunction · 0.85

Calls 1

snapshotTemplateStateFunction · 0.85

Tested by

no test coverage detected