sortedKeys returns the keys of a map sorted alphabetically. This ensures deterministic iteration order for reproducible plan output in tests.
(m map[string]V)
| 842 | // sortedKeys returns the keys of a map sorted alphabetically. |
| 843 | // This ensures deterministic iteration order for reproducible plan output in tests. |
| 844 | func sortedKeys[V any](m map[string]V) []string { |
| 845 | keys := make([]string, 0, len(m)) |
| 846 | for k := range m { |
| 847 | keys = append(keys, k) |
| 848 | } |
| 849 | sort.Strings(keys) |
| 850 | return keys |
| 851 | } |
no outgoing calls
no test coverage detected