MCPcopy Create free account
hub / github.com/PostHog/duckgres / sortedCopy

Function sortedCopy

tests/integration/compare.go:570–575  ·  view source on GitHub ↗

sortedCopy returns a sorted copy of a string slice

(s []string)

Source from the content-addressed store, hash-verified

568
569// sortedCopy returns a sorted copy of a string slice
570func sortedCopy(s []string) []string {
571 result := make([]string, len(s))
572 copy(result, s)
573 sort.Strings(result)
574 return result
575}
576
577// contains checks if a string slice contains a value
578func contains(slice []string, val string) bool {

Callers 1

compareResultsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected