MCPcopy Create free account
hub / github.com/dropbox/dbxcli / sortedCopy

Function sortedCopy

cmd/json_contract_test.go:1275–1282  ·  view source on GitHub ↗
(values []string)

Source from the content-addressed store, hash-verified

1273}
1274
1275func sortedCopy(values []string) []string {
1276 if values == nil {
1277 return []string{}
1278 }
1279 copied := append([]string{}, values...)
1280 sort.Strings(copied)
1281 return copied
1282}
1283
1284func mapKeys[V any](values map[string]V) []string {
1285 keys := make([]string, 0, len(values))

Callers 3

assertStringSliceEqualFunction · 0.70
normalizeStringSliceMapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected