summaryrefslogtreecommitdiff
path: root/android/util_test.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2023-03-01 14:21:30 -0800
committer Cole Faust <colefaust@google.com> 2023-03-01 14:21:30 -0800
commit195c7819fb05323110db7fa4d81580ee8a030d8e (patch)
tree3fc2055cb47eb7ff96aac83c42952648a18c3907 /android/util_test.go
parent29ff4182f58c122ed6b68ef7852df64f602bc70f (diff)
Make SortedStringKeys call SortedKeys
I realized this could work if I make it generic. Bug: 193460475 Test: m nothing Change-Id: I2071b4cdbccb642ebdbb1342f7d91e581aab9f0f
Diffstat (limited to 'android/util_test.go')
-rw-r--r--android/util_test.go38
1 files changed, 0 insertions, 38 deletions
diff --git a/android/util_test.go b/android/util_test.go
index 51d8e328c..1034d9e5c 100644
--- a/android/util_test.go
+++ b/android/util_test.go
@@ -671,44 +671,6 @@ func TestSortedKeys(t *testing.T) {
testSortedKeysHelper(t, "empty", map[string]string{}, nil)
}
-func TestSortedStringKeys(t *testing.T) {
- testCases := []struct {
- name string
- in interface{}
- expected []string
- }{
- {
- name: "nil",
- in: map[string]string(nil),
- expected: nil,
- },
- {
- name: "empty",
- in: map[string]string{},
- expected: nil,
- },
- {
- name: "simple",
- in: map[string]string{"a": "foo", "b": "bar"},
- expected: []string{"a", "b"},
- },
- {
- name: "interface values",
- in: map[string]interface{}{"a": nil, "b": nil},
- expected: []string{"a", "b"},
- },
- }
-
- for _, tt := range testCases {
- t.Run(tt.name, func(t *testing.T) {
- got := SortedStringKeys(tt.in)
- if g, w := got, tt.expected; !reflect.DeepEqual(g, w) {
- t.Errorf("wanted %q, got %q", w, g)
- }
- })
- }
-}
-
func TestSortedStringValues(t *testing.T) {
testCases := []struct {
name string