-- sortedKeys --.
(t *testing.T)
| 1832 | // -- sortedKeys --. |
| 1833 | |
| 1834 | func TestSortedKeys(t *testing.T) { |
| 1835 | m := map[string]string{"beta": "b", "alpha": "a", "gamma": "g", "delta": "d"} |
| 1836 | got := sortedKeys(m) |
| 1837 | assert.Equal(t, []string{"alpha", "beta", "delta", "gamma"}, got) |
| 1838 | } |
| 1839 | |
| 1840 | func TestSortedKeys_EmptyMap(t *testing.T) { |
| 1841 | assert.Empty(t, sortedKeys(map[string]string{})) |
nothing calls this directly
no test coverage detected