MCPcopy Create free account
hub / github.com/compozy/agh / cloneExtensionMap

Function cloneExtensionMap

internal/network/validate.go:971–981  ·  view source on GitHub ↗
(ext ExtensionMap)

Source from the content-addressed store, hash-verified

969}
970
971func cloneExtensionMap(ext ExtensionMap) ExtensionMap {
972 if ext == nil {
973 return nil
974 }
975
976 cloned := make(ExtensionMap, len(ext))
977 for key, value := range ext {
978 cloned[key] = cloneRawMessage(value)
979 }
980 return cloned
981}
982
983func cloneProof(proof *Proof) *Proof {
984 if proof == nil {

Callers 8

buildEnvelopeMethod · 0.70
parseEnvelopeSummaryFunction · 0.70
normalizeEnvelopeCopyFunction · 0.70
cloneEnvelopeFunction · 0.70
clonePeerCardFunction · 0.70
prepareRuntimeSendMethod · 0.70

Calls 1

cloneRawMessageFunction · 0.70

Tested by

no test coverage detected