MCPcopy Create free account
hub / github.com/auth0/auth0-cli / TestSortedKeys

Function TestSortedKeys

internal/cli/quickstart_detect_test.go:1834–1838  ·  view source on GitHub ↗

-- sortedKeys --.

(t *testing.T)

Source from the content-addressed store, hash-verified

1832// -- sortedKeys --.
1833
1834func 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
1840func TestSortedKeys_EmptyMap(t *testing.T) {
1841 assert.Empty(t, sortedKeys(map[string]string{}))

Callers

nothing calls this directly

Calls 1

sortedKeysFunction · 0.85

Tested by

no test coverage detected