MCPcopy
hub / github.com/github/gh-ost / Duplicate

Method Duplicate

go/base/load_map.go:54–60  ·  view source on GitHub ↗

Duplicate creates a clone of this map

()

Source from the content-addressed store, hash-verified

52
53// Duplicate creates a clone of this map
54func (lm *LoadMap) Duplicate() LoadMap {
55 dup := make(map[string]int64)
56 for k, v := range *lm {
57 dup[k] = v
58 }
59 return dup
60}
61
62// String() returns a string representation of this map
63func (lm *LoadMap) String() string {

Callers 3

GetMaxLoadMethod · 0.45
GetCriticalLoadMethod · 0.45
initiateInspectorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected