MCPcopy Create free account
hub / github.com/CPChain/chain / sortedMapKeys

Function sortedMapKeys

tests/init_test.go:249–256  ·  view source on GitHub ↗
(m reflect.Value)

Source from the content-addressed store, hash-verified

247}
248
249func sortedMapKeys(m reflect.Value) []string {
250 keys := make([]string, m.Len())
251 for i, k := range m.MapKeys() {
252 keys[i] = k.String()
253 }
254 sort.Strings(keys)
255 return keys
256}
257
258func runTestFunc(runTest interface{}, t *testing.T, name string, m reflect.Value, key string) {
259 reflect.ValueOf(runTest).Call([]reflect.Value{

Callers 1

runTestFileMethod · 0.85

Calls 2

LenMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected