mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-16 03:49:52 +00:00
Removed Keys() method which is unused outside of a test
This commit is contained in:
@@ -67,13 +67,13 @@ func TestSetsMerge(t *testing.T) {
|
||||
}
|
||||
|
||||
func check(t *testing.T, desc string, haveSets report.Sets, want map[string][]string) {
|
||||
have := map[string][]string{}
|
||||
keys := haveSets.Keys()
|
||||
for _, k := range keys {
|
||||
have[k], _ = haveSets.Lookup(k)
|
||||
if haveSets.Size() != len(want) {
|
||||
t.Errorf("%s: different lengths: want %+v, have %+v", desc, want, haveSets)
|
||||
}
|
||||
|
||||
if !reflect.DeepEqual(want, have) {
|
||||
t.Errorf("%s: want %+v, have %+v", desc, want, have)
|
||||
for k, v := range want {
|
||||
have, _ := haveSets.Lookup(k)
|
||||
if !reflect.DeepEqual([]string(have), v) {
|
||||
t.Errorf("%s: want %+v, have %+v", desc, want, haveSets)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user