(ext ExtensionMap)
| 969 | } |
| 970 | |
| 971 | func 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 | |
| 983 | func cloneProof(proof *Proof) *Proof { |
| 984 | if proof == nil { |
no test coverage detected