mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-05 00:39:04 +00:00
MapFunc is now Node->Node
Save time creating a map for the results which contains at most one entry
This commit is contained in:
@@ -43,7 +43,7 @@ type testcase struct {
|
||||
}
|
||||
|
||||
func testMap(t *testing.T, f render.MapFunc, input testcase) {
|
||||
if have := f(input.n); input.ok != (len(have) > 0) {
|
||||
if have := f(input.n); input.ok != (have.ID != "") {
|
||||
name := input.name
|
||||
if name == "" {
|
||||
name = fmt.Sprintf("%v", input.n)
|
||||
|
||||
Reference in New Issue
Block a user